diff --git a/src/renderer.cpp b/src/renderer.cpp index 335a8be..e7ae4db 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -72,7 +72,7 @@ namespace Renderer { // Scene Scene::Scene(Window* win) { - window = win; + window = win; } Scene::Scene(Window* win, std::vector ROs) : Scene(win) { @@ -95,7 +95,7 @@ namespace Renderer { glClearColor(0.1f, 0.1f, 0.1f, 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); - for ( RenderObject *ro: renderObjects ) + for ( RenderObject *ro: renderObjects ) ro->render(*camera); // Record the last frame @@ -125,7 +125,7 @@ namespace Renderer { } // RenderObject - RenderObject::RenderObject(std::vector verts, std::vector indices) + RenderObject::RenderObject(std::vector verts, std::vector indices) : shader(VERT_SHADER_SRC_FILE, FRAG_SHADER_SRC_FILE) { vertsVec = verts; indicesVec = indices; diff --git a/src/window.cpp b/src/window.cpp index 34e235b..53304ee 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -14,7 +14,7 @@ Window::Window(const char* title, unsigned int w, unsigned int h) : Window(title } void Window::spawn() { - glfwInit(); + glfwInit(); glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); @@ -31,8 +31,6 @@ void Window::spawn() { } void Window::updateSize(int w, int h) { - // int w, h; - // glfwGetWindowSize(win, &w, &h); _width = w; _height = h; glViewport(0, 0, w, h);