3dBackgroundDialog.h
资源名称:gloop.zip [点击查看]
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:4k
源码类别:
OpenGL
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // 3dBackgroundDialog.h : Header file; Defines the class definitions
- //
- // glOOP (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1998
- //
- // OpenGL is a registered trademark of Silicon Graphics
- //
- //
- // This program is provided for educational and personal use only and
- // is provided without guarantee or warrantee expressed or implied.
- //
- // Commercial use is strickly prohibited without written permission
- // from ImageWare Development.
- //
- // This program is -not- in the public domain.
- //
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageBackground dialog
- class AFX_EXT_CLASS C3dPageBackground : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageBackground);
- // Construction
- public:
- C3dPageBackground();
- virtual ~C3dPageBackground();
- // Attributes
- public:
- C3dWorld* m_pWorld;
- CWnd m_wndBkgndColor;
- // Dialog Data
- //{{AFX_DATA(C3dPageBackground)
- enum { IDD = IDD_PAGE_BACKGROUND };
- CComboBox m_ColorCombo;
- CString m_szBkgndFileName;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageBackground)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd();
- // Generated message map functions
- //{{AFX_MSG(C3dPageBackground)
- virtual BOOL OnInitDialog();
- afx_msg void OnSelchangeColorCombo();
- afx_msg void OnButtonColorWnd();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnTextureOpen();
- afx_msg void OnTextureEdit();
- afx_msg void OnTextureRemove();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dPageBackgroundFog dialog
- class AFX_EXT_CLASS C3dPageBackgroundFog : public CPropertyPage
- {
- DECLARE_DYNCREATE(C3dPageBackgroundFog);
- // Construction
- public:
- C3dPageBackgroundFog();
- virtual ~C3dPageBackgroundFog();
- // Attributes
- public:
- C3dWorld* m_pWorld;
- CWnd m_wndSelColor;
- // Dialog Data
- //{{AFX_DATA(C3dPageBackgroundFog)
- enum { IDD = IDD_PAGE_BACKGROUND_FOG };
- CComboBox m_ColorCombo;
- float m_fDensity;
- float m_fEnd;
- float m_fStart;
- int m_iFogEnable;
- int m_iHint;
- int m_iMode;
- float m_fAlpha;
- //}}AFX_DATA
- // Overrides
- // ClassWizard generate virtual function overrides
- //{{AFX_VIRTUAL(C3dPageBackgroundFog)
- public:
- virtual void OnOK();
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- void PaintButtonWnd();
- void GetDialogData();
- void SetDialogData();
- // Generated message map functions
- //{{AFX_MSG(C3dPageBackgroundFog)
- virtual BOOL OnInitDialog();
- afx_msg void OnButtonColorWnd();
- afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
- afx_msg void OnSelchangeColorCombo();
- afx_msg void OnFogEnable();
- afx_msg void OnHintFastest();
- afx_msg void OnHintNicest();
- afx_msg void OnModeLinear();
- afx_msg void OnModeExpotential();
- afx_msg void OnModeExpotential2();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////
- // C3dBackgroundPropSheet class
- class AFX_EXT_CLASS C3dBackgroundPropSheet : public CPropertySheet
- {
- DECLARE_DYNAMIC(C3dBackgroundPropSheet)
- //Construction
- public:
- C3dBackgroundPropSheet(LPSTR lpName, CWnd* pWndParent, C3dWorld* pWorld);
- // Attributes
- public:
- C3dPageBackground m_BackgroundPage;
- C3dPageBackgroundFog m_BackgroundFogPage;
- C3dPageAnimation m_AnimationPage;
- // Operations
- // Overrides
- virtual void PostNcDestroy();
- // Message Handlers
- protected:
- //{{AFX_MSG(C3dBackgroundPropSheet)
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////