-
Notifications
You must be signed in to change notification settings - Fork 0
/
GLManager.h
55 lines (49 loc) · 1.22 KB
/
GLManager.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
//
// Created by lesscomplex on 08/03/2020.
//
#ifndef YOURAPPNAME_GLMANAGER_H
#define YOURAPPNAME_GLMANAGER_H
#include "definitions.h"
class GLShift::GLManager {
public:
/**
* Initializes the GLFW environment
*/
GLManager();
/**
* Initializes the GLFW environment & sets the specific version
* of OpenGL to use
* @param major
* @param minor
*/
GLManager(signed int major, signed int minor);
/**
* Terminated the GLFW environment
*/
~GLManager();
/**
* Sets the version of OpenGL to use
* @param major
* @param minor
*/
void setVersion(signed int major, signed int minor);
/**
* Sets the renderer object to use for rendering on the window
* @param renderer
*/
void setRenderer(GLRenderer * renderer);
/**
* Opens a window with GLFW context
* @param width
* @param height
* @param title
* @param isFullScreen Set true to make full screen app
*/
void openWindow(signed int width, signed int height, const char* title, bool isFullScreen = false);
void run();
private:
GLFWwindow *window;
GLRenderer *renderer;
signed int major, minor;
};
#endif //YOURAPPNAME_GLMANAGER_H