3dBackgroundPropSheet.cpp
资源名称:gloop.zip [点击查看]
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // 3dBackgroundPropSheet.cpp : Implementation file
- //
- // 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.
- //
- /////////////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "glOOP.h"
- #include "3dObjectDialog.h"
- #include "3dBackgroundDialog.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // 3dBackgroundPropSheet dialog
- IMPLEMENT_DYNAMIC(C3dBackgroundPropSheet, CPropertySheet)
- /////////////////////////////////////////////////////////////////////////////
- // 3dBackgroundPropSheet dialog message map
- BEGIN_MESSAGE_MAP(C3dBackgroundPropSheet, CPropertySheet)
- //{{AFX_MSG_MAP(C3dBackgroundPropSheet)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // C3dBackgroundPropSheet dialog construction
- C3dBackgroundPropSheet::C3dBackgroundPropSheet(LPSTR lpName, CWnd* pWndParent, C3dWorld* pWorld)
- : CPropertySheet(lpName, pWndParent)
- {
- AddPage(&m_BackgroundPage);
- m_BackgroundPage.m_pWorld = pWorld;
- AddPage(&m_BackgroundFogPage);
- m_BackgroundFogPage.m_pWorld = pWorld;
- AddPage(&m_AnimationPage);
- m_AnimationPage.m_pWorld = pWorld;
- }
- /////////////////////////////////////////////////////////////////////////////
- // 3dBackgroundPropSheet Implimentation
- void C3dBackgroundPropSheet::PostNcDestroy()
- {
- CPropertySheet::PostNcDestroy();
- delete this;
- }