www.pudn.com > Ì廿֯Âë.rar > openglsupport.h, change:2001-12-13,size:861b
#ifndef __openglsupport_h__
#define __openglsupport_h__
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include "vecmath.h"
typedef void (* MOUSEPROC)(HWND, UINT, WPARAM, LPARAM);
//! OpenGL Window Class
class GLWindow
{
private:
HINSTANCE hInst;
HDC hDC;
HGLRC hRC;
HWND hWnd;
public:
/*! Constructor
*\param hInstance Instance of application
*\param hWndParent Parent Window of OpenGL window
*\param WndProc The callback function of the OpenGL window (currently not used)
*\param MouseProc Mouse callback
*/
GLWindow(HINSTANCE hInstance, HWND hWndParent, WNDPROC WndProc, MOUSEPROC MouseProc);
~GLWindow();
/*! swaps OpenGL buffers
*/
void Swap();
/*! window handle retrieval
*\return Window handle of OpenGL window
*/
HWND GetHWND();
};
#endif