-
Notifications
You must be signed in to change notification settings - Fork 1
/
GlView.h
executable file
·72 lines (55 loc) · 1.76 KB
/
GlView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#if !defined(AFX_GLVIEW_H__6A408C2D_B713_4D84_8500_C4FD27AB2713__INCLUDED_)
#define AFX_GLVIEW_H__6A408C2D_B713_4D84_8500_C4FD27AB2713__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// GlView.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CGlView window
#include <gl/gl.h>
#include <gl/glu.h>
class CWorld;
class CGlView : public CWnd
{
// Construction
public:
CGlView(CWnd *pclWnd);
// Attributes
public:
HDC m_hDC; // GDI Device Context
HGLRC m_hglRC; // Rendering Context
CWnd* m_pclWnd;
HWND m_hWnd;
// Operations
public:
BOOL SetPixelformat(HDC hdc);
GLvoid ReSizeGLScene(GLsizei width, GLsizei height, CWorld *world);
int InitGL(GLvoid);
int BeginDrawGLScene(GLvoid);
int EndDrawGLScene(GLvoid);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGlView)
protected:
// virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CGlView();
// Generated message map functions
protected:
public:
int OnCreate();
//{{AFX_MSG(CGlView)
// afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
// afx_msg void OnDestroy();
// afx_msg void OnSize(UINT nType, int cx, int cy);
// afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GLVIEW_H__6A408C2D_B713_4D84_8500_C4FD27AB2713__INCLUDED_)