1 #if !defined(AFX_OPENGLWND_H__83310F64_5D53_44AE_9D08_E29D6A961D6F__INCLUDED_)
2 #define AFX_OPENGLWND_H__83310F64_5D53_44AE_9D08_E29D6A961D6F__INCLUDED_
6 #endif // _MSC_VER > 1000
18 #include "visageVision.h"
36 bool DrawBackgroundImage();
37 bool DrawInstructionsAndInitStatus(
bool face_detected,
float yaw);
38 int LoadTexture(
char *fullPath);
53 void displayMessage(
char *userMessage,
char *caption,
int type);
60 void setOpenGLContext();
65 void swapOpenGLBuffers();
83 void checkOpenGLSize(
unsigned int &width,
unsigned int &height);
88 enum ID_TIMER_EVENTS {
92 static const int mTIMER_ROTATE_INTERVAL;
93 static const int mTIMER_RENDERING_INTERVAL;
95 PIXELFORMATDESCRIPTOR pfdMain;
103 GLuint insttexture[1];
138 BOOL SetupPixelFormat();
146 void SwapGLBuffers();
155 virtual void OnDraw(CDC* pDC);
156 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
164 virtual void AssertValid()
const;
165 virtual void Dump(CDumpContext& dc)
const;
171 afx_msg
int OnCreate(LPCREATESTRUCT lpCreateStruct);
172 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
173 afx_msg
void OnSize(UINT nType,
int cx,
int cy);
175 DECLARE_MESSAGE_MAP()
203 void ReSizeGLScene(GLsizei width, GLsizei height);
209 void RenderToScreen();
220 float renderingFrameRate;
222 GLsizei mWindowWidth, mWindowHeight;
227 CRITICAL_SECTION RenderingSection;
231 GLfloat mXTranslate, mYTranslate, mZTranslate;
234 GLfloat *modelViewMatrix;
236 GLfloat mXAccel, mYAccel, mZAccel, Accel;
243 double mVGLR_PERSPECT_FOVY;
244 double mVGLR_PERSPECT_TAN_FOVY;
245 double mVGLR_PERSPECT_NEAR_PLANE;
257 float* faceTranslation;
291 #endif // !defined(AFX_OPENGLWND_H__83310F64_5D53_44AE_9D08_E29D6A961D6F__INCLUDED_)
HGLRC m_hRC1
Rendering context for tracking.
HGLRC m_hRC
Rendering context for drawing the 3D model.
The OpenGL-enabled window with rendering and basic interaction.