-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglutwrapper.h
More file actions
41 lines (30 loc) · 978 Bytes
/
glutwrapper.h
File metadata and controls
41 lines (30 loc) · 978 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
36
37
38
39
40
41
#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glext.h>
#include <GL/freeglut.h>
#include <cstdlib>
#include <iostream>
#include <handlerbase.h>
#pragma once
namespace EZGraphics {
/* -------------------------------------- */
class GLUTwrapper {
static EventHandlerBase *handler;
static int windowID;
static int buttonDown;
static void activeMotion ( int mx, int my );
static void draw();
static void mouseButton ( int btn, int state, int mx, int my );
static void keyPressed ( unsigned char key, int x, int y );
static void resize ( int sizex, int sizey );
static void idleFunction();
static void passiveMotion ( int mx, int my );
static void visibilityFunction ( int state );
static void specialFunction ( int key, int x, int y );
static void entryFunction ( int state );
public:
GLUTwrapper ( EventHandlerBase *h );
void run();
};
/* -------------------------------------- */
};