-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathWindow.h
More file actions
48 lines (37 loc) · 1008 Bytes
/
Window.h
File metadata and controls
48 lines (37 loc) · 1008 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
42
43
44
45
46
47
48
#ifndef _WINDOW_H_
#define _WINDOW_H_
#include "main.h"
#include "shader.h"
#include "Object.h"
#include "Cube.h"
#include "PointCloud.h"
class Window
{
public:
// Window Properties
static int width;
static int height;
static const char* windowTitle;
// Objects to Render
static Cube* cube;
static PointCloud * cubePoints;
// Camera Matrices
static glm::mat4 projection;
static glm::mat4 view;
static glm::vec3 eyePos, lookAtPoint, upVector;
// Shader Program ID
static GLuint shaderProgram;
// Constructors and Destructors
static bool initializeProgram();
static bool initializeObjects();
static void cleanUp();
// Window functions
static GLFWwindow* createWindow(int width, int height);
static void resizeCallback(GLFWwindow* window, int width, int height);
// Draw and Update functions
static void idleCallback();
static void displayCallback(GLFWwindow*);
// Callbacks
static void keyCallback(GLFWwindow* window, int key, int scancode, int action, int mods);
};
#endif