- /////////////////////////////////////////////////////////////////////////////
- // ModelMagic3D.h : main header file for the ModelMagic 3D application
- //
- // ModelMagic 3D and 'glOOP' (OpenGL Object Oriented Programming library)
- // Copyright (c) Craig Fahrnbach 1997, 1999
- //
- // 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.
- //
- /////////////////////////////////////////////////////////////////////////////
- #ifndef __AFXWIN_H__
- #error include 'stdafx.h' before including this file for PCH
- #endif
- #include "resource.h" // main symbols
- // Inculde all applicable header files here and include 'ModelMagic3D.h' in
- // any added class *.cpp definition file(s)
- // Inculded header files from glOOP
- #include "glOOP.h"
- #include "glMath.h"
- #include "OpenGLDiagnostics.h"
- // Inculded header files from ModelMagic3D
- #include "MyTreeCtrl.h"
- #include "MyTreeDlgBar.h"
- #include "MyColorPaletteWnd.h"
- #include "MyColorDlgBar.h"
- #include "MyToolBar.h"
- #include "MyKeyFrameBar.h"
- #include "MyCoordDlgBar.h"
- #include "EditColorsDlg.h"
- #include "EditMaterialDlg.h"
- #include "EditTextureDlg.h"
- #include "Splash.h"
- #include "MyglDoc.h"
- #include "MyglView.h"
- #include "MainFrm.h"
- /////////////////////////////////////////////////////////////////////////////
- // CMyglApp:
- // See ModelMagic3D.cpp for the implementation of this class
- //
- class CMyglApp : public CWinApp
- {
- // Construction/Destruction
- public:
- CMyglApp();
- ~CMyglApp();
- // Operations
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- void GetRegStatus();
- void SendEmail();
- void DisplayWebSite();
- void SetPrinterDeviceDefaults(HGLOBAL hDevNames, HGLOBAL hDevMode);
- // Attributes
- public:
- CMultiDocTemplate* m_pDocTemplate;
- BOOL m_bConfirmObjectDeletion; // Confirm object deletion?
- BOOL m_bRegistered;
- int m_iDays;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CMyglApp)
- public:
- virtual BOOL InitInstance();
- virtual BOOL OnIdle(LONG lCount);
- virtual int ExitInstance();
- //}}AFX_VIRTUAL
- // Implementation
- //{{AFX_MSG(CMyglApp)
- afx_msg void OnAppAbout();
- afx_msg void OnHelpWebsite();
- afx_msg void OnHelpSendmail();
- afx_msg void OnOrderForm();
- afx_msg void OnOrderOnline();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- ////////////////////////////////////////////////////////////////////////////
- // Global User Defined Messages (Begin at 100)
- //
- #define WM_REFRESH_DLG_BAR WM_USER+100
- #define WM_CHANGECOORDINATEPAGE WM_USER+101
- #define WM_UPDATECOORDINATEPAGE WM_USER+102
- ////////////////////////////////////////////////////////////////////////////
- // Global Definitions
- //
- // Coordinate Dialog bar wParam values
- #define CP_ORIGIN 0x0000
- #define CP_ROTATE 0x0001
- #define CP_SCALE 0x0002
- #define CP_TRANSLATE 0x0003
- /////////////////////////////////////////////////////////////////////////////
- // Global variables defined in ModelMagic3D.cpp:
- //
- extern CMyglApp theApp;
- /////////////////////////////////////////////////////////////////////////////
- // Global DLL variables
- //
- extern GLfloat g_fMouseZMult; // Mouse 'Z'-Axis multiplier
- extern GLfloat g_fMouseRotateMult; // Mouse 'Rotation' multiplier
- extern GLfloat g_fMouseScaleMult; // Mouse 'Scale' multiplier