Skip to content

Commit e1c3006

Browse files
Merge branch 'master' into test
2 parents de0f066 + 0b966f1 commit e1c3006

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

glshift/GLManager.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ GLShift::GLManager::GLManager() {
1313
}
1414
}
1515

16-
GLShift::GLManager::GLManager(int major, int minor) {
16+
GLShift::GLManager::GLManager(unsigned int major, unsigned int minor) {
1717
if(!glfwInit()) {
1818
std::cerr << "Couldn't initialize glfw context" << std::endl;
1919
delete this;
2020
}
2121
this->setVersion(major, minor);
2222
}
2323

24-
void GLShift::GLManager::setVersion(int major, int minor) {
24+
void GLShift::GLManager::setVersion(unsigned int major, unsigned int minor) {
2525
this->major = major; this->minor = minor;
2626
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, major);
2727
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, minor);
2828
}
2929

30-
void GLShift::GLManager::openWindow(int width, int height, const char* title,bool isFullScreen) {
30+
void GLShift::GLManager::openWindow(unsigned int width, unsigned int height, const char* title,bool isFullScreen) {
3131
this->window = glfwCreateWindow(width, height, title, isFullScreen ? glfwGetPrimaryMonitor() : NULL, NULL);
3232
glfwMakeContextCurrent(this->window);
3333
if(GLenum err = glewInit(); err != GLEW_OK) {

glshift/GLManager.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class GLShift::GLManager {
1919
* @param major
2020
* @param minor
2121
*/
22-
GLManager(signed int major, signed int minor);
22+
GLManager(unsigned int major, unsigned int minor);
2323
/**
2424
* Terminated the GLFW environment
2525
*/
@@ -30,7 +30,7 @@ class GLShift::GLManager {
3030
* @param major
3131
* @param minor
3232
*/
33-
void setVersion(signed int major, signed int minor);
33+
void setVersion(unsigned int major, unsigned int minor);
3434
/**
3535
* Sets the renderer object to use for rendering on the window
3636
* @param renderer
@@ -43,12 +43,12 @@ class GLShift::GLManager {
4343
* @param title
4444
* @param isFullScreen Set true to make full screen app
4545
*/
46-
void openWindow(signed int width, signed int height, const char* title, bool isFullScreen = false);
46+
void openWindow(unsigned int width, unsigned int height, const char* title, bool isFullScreen = false);
4747
void run();
4848
private:
4949
GLFWwindow *window;
5050
GLRenderer *renderer;
51-
signed int major, minor;
51+
unsigned int major, minor;
5252
};
5353

5454

0 commit comments

Comments
 (0)