-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNeHe_Window.h
More file actions
35 lines (28 loc) · 792 Bytes
/
Copy pathNeHe_Window.h
File metadata and controls
35 lines (28 loc) · 792 Bytes
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
#ifndef _NEHE_WINDOW_H_
#define _NEHE_WINDOW_H_
#include <windows.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "NeHeGL.h"
class GL_Window
{
public:
Keys *keys;
HWND hWnd;
HDC hDC;
HGLRC hRC;
GL_WindowInit init;
BOOL isVisible;
DWORD lastTickCount;
};
void TerminateApplication (GL_Window *window);
void ToggleFullscreen (GL_Window *window);
void ReshapeGL (int width, int height);
BOOL ChangeScreenResolution (int width, int height, int bitsPerPixel);
BOOL CreateWindowGL (GL_Window *window);
BOOL DestroyWindowGL (GL_Window *window);
BOOL RegisterWindowClass (Application *application, void *WindowProc);
#define WM_TOGGLEFULLSCREEN (WM_USER + 1)
extern bool g_isProgramLooping;
extern bool g_createFullScreen;
#endif