3dCameraPropSheet.cpp
资源名称:gloop.zip [点击查看]
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // 3dCameraPropSheet.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 "3dCameraDialog.h"
- /////////////////////////////////////////////////////////////////////////////
- // C3dCameraPropSheet dialog
- IMPLEMENT_DYNAMIC(C3dCameraPropSheet, CPropertySheet)
- /////////////////////////////////////////////////////////////////////////////
- // C3dCameraPropSheet dialog message map
- BEGIN_MESSAGE_MAP(C3dCameraPropSheet, CPropertySheet)
- //{{AFX_MSG_MAP(C3dCameraPropSheet)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // C3dCameraPropSheet dialog construction
- C3dCameraPropSheet::C3dCameraPropSheet(LPSTR lpName, CWnd* pWndParent, C3dCamera* pCamera, C3dWorld* pWorld)
- : CPropertySheet(lpName, pWndParent)
- {
- // Add the applicable pages to the property sheet
- AddPage(&m_3dCameraPage);
- m_3dCameraPage.m_pCamera = pCamera;
- AddPage(&m_OriginPage);
- m_OriginPage.m_pCamera = pCamera;
- AddPage(&m_RotatePage);
- m_RotatePage.m_pCamera = pCamera;
- AddPage(&m_AnimationPage);
- m_AnimationPage.m_pCamera = pCamera;
- }
- /////////////////////////////////////////////////////////////////////////////
- // C3dCameraPropSheet function implimentation
- void C3dCameraPropSheet::PostNcDestroy()
- {
- CPropertySheet::PostNcDestroy();
- delete this;
- }