/
redgpu
/
GDMagArchive
Обзор
Документация
Войти
/
redgpu
/
GDMagArchive
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
dec98/lander/code/OGL/Morphy/OGLView.h
102 строки
3 KB
Don Williamson
first commit
31 окт 2016, 17:03
31 окт 2016, 17:03
c823e7b
Код
Авторство
О чём код?
/////////////////////////////////////////////////////////////////////////////// // // OGLView.h : class definition file // // Purpose: Implementation of OpenGL Window of 3D Morphing System // // Created: // JL 10/1/98 // // The function morphModel() does the main morphing work. // /////////////////////////////////////////////////////////////////////////////// // // Copyright 1998 Jeff Lander, All Rights Reserved. // For educational purposes only. // Please do not republish in electronic or print form without permission // Thanks - jeffl@darwin3d.com // /////////////////////////////////////////////////////////////////////////////// #if !defined(AFX_OGLVIEW_H__2AB46761_27CD_11D1_83A0_004005308EB5__INCLUDED_) #define AFX_OGLVIEW_H__2AB46761_27CD_11D1_83A0_004005308EB5__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 // OGLView.h : header file // #include <GL/gl.h> #include <GL/glu.h> #include "Skeleton.h" #include "Slider.h" ///////////////////////////////////////////////////////////////////////////// // COGLView window class COGLView : public CWnd { // Construction public: COGLView(); // Attributes public: CStatusBar *m_ptrStatusBar; HDC m_hDC; HGLRC m_hRC; CPoint m_mousepos; float m_Grab_Rot_X,m_Grab_Rot_Y,m_Grab_Rot_Z; float m_Grab_Trans_X,m_Grab_Trans_Y,m_Grab_Trans_Z; BOOL m_DrawGeometry; int m_curVisual; float m_MorphPos; CSlider *m_Slider; // Operations public: BOOL SetupPixelFormat(HDC hdc); GLvoid drawScene(GLvoid); GLvoid drawModel(t_Bone *curBone); GLvoid initializeGL(GLsizei width, GLsizei height); GLvoid resize( GLsizei width, GLsizei height ); void GetGLInfo(char *who,char *which, char *version, char *extensions); void HandleKeyUp(UINT nChar); void HandleKeyDown(UINT nChar); GLvoid morphModel(t_Bone *curBone); GLvoid LoadBoneTexture(t_Bone *curBone); void LoadFiles(CString file1, CString file2); // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(COGLView) public: virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CSlider *slider, CCreateContext* pContext = NULL); //}}AFX_VIRTUAL // Implementation public: virtual ~COGLView(); // Generated message map functions protected: t_Bone m_Skeleton; //{{AFX_MSG(COGLView) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void OnPaint(); afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); afx_msg void OnMouseMove(UINT nFlags, CPoint point); afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Developer Studio will insert additional declarations immediately before the previous line. #endif // !defined(AFX_OGLVIEW_H__2AB46761_27CD_11D1_83A0_004005308EB5__INCLUDED_)