sandbox
This commit is contained in:
@@ -116,6 +116,13 @@ namespace Archimedes {
|
||||
return glfwWindowShouldClose(window);
|
||||
}
|
||||
|
||||
void setSize(const int& w, const int& h) override {
|
||||
this->w = w;
|
||||
this->h = h;
|
||||
|
||||
glfwSetWindowSize(window, w, h);
|
||||
}
|
||||
|
||||
void restoreContext() override { glfwMakeContextCurrent(window); }
|
||||
|
||||
void getSize(int& w, int& h) override {
|
||||
|
||||
@@ -141,15 +141,6 @@ namespace Archimedes {
|
||||
#ifdef RENDERER_OPENGL
|
||||
void restoreContext() override { SDL_GL_MakeCurrent(window, gl_context); }
|
||||
#endif
|
||||
void getSize(int& w, int& h) override {
|
||||
w = this->w;
|
||||
h = this->h;
|
||||
}
|
||||
|
||||
void setSize(int& w, int& h) {
|
||||
this->w = w;
|
||||
this->h = h;
|
||||
}
|
||||
|
||||
SDL_Window* getWindow() { return window; }
|
||||
#ifdef RENDERER_OPENGL
|
||||
|
||||
Reference in New Issue
Block a user