AnimPropSheet.cpp
资源名称:gloop.zip [点击查看]
上传用户:shxiangxiu
上传日期:2007-01-03
资源大小:1101k
文件大小:2k
源码类别:
OpenGL
开发平台:
Visual C++
- /////////////////////////////////////////////////////////////////////////////
- // AnimPropSheet.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 "AnimationDialog.h"
- /////////////////////////////////////////////////////////////////////////////
- // C3dObjectScalePage dialog
- IMPLEMENT_DYNAMIC(CAnimPropSheet, CPropertySheet)
- /////////////////////////////////////////////////////////////////////////////
- // C3dObjectScalePage dialog message map
- BEGIN_MESSAGE_MAP(CAnimPropSheet, CPropertySheet)
- //{{AFX_MSG_MAP(CAnimPropSheet)
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CAnimPropSheet dialog construction
- CAnimPropSheet::CAnimPropSheet(LPSTR lpName, CWnd* pWndParent, C3dObject* pObject, C3dCamera* pCamera, C3dWorld* pWorld)
- : CPropertySheet(lpName, pWndParent)
- {
- // Let the object, camera or world add the animation pages since each can have
- // different associated animation procedures..
- if(pObject)
- {
- pObject->AddAnimationPages(pWorld, this);
- return;
- }
- if(pCamera)
- {
- pCamera->AddAnimationPages(pWorld, this);
- return;
- }
- if(pWorld)
- {
- pWorld->AddAnimationPages(pWorld, this);
- return;
- }
- }
- /////////////////////////////////////////////////////////////////////////////
- // CAnimPropSheet function implimentation
- void CAnimPropSheet::PostNcDestroy()
- {
- CPropertySheet::PostNcDestroy();
- delete this;
- }