Skip to content

Commit

Permalink
includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexpop11 committed Aug 31, 2024
1 parent 21e08a2 commit bf6afcc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OpenGL/src/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ int main(void) {
/* Make the window's context current */
glfwMakeContextCurrent(window);

glfwSwapInterval(1);
glfwSwapInterval(0);

if (glewInit() != GLEW_OK)
std::cout << "Error!" << std::endl;
Expand Down Expand Up @@ -121,13 +121,13 @@ int main(void) {
// gather all different shaders that are currently in use, and check if we need to
// recompile the shader because the file was changed.
// -------------------------------------------------------------------------------
std::set<std::shared_ptr<Shader>> shaders;
/* std::set<std::shared_ptr<Shader>> shaders;
for (auto& gameobject : World::gameobjects) {
if (gameobject->shader && !shaders.contains(gameobject->shader)) {
shaders.insert(gameobject->shader);
gameobject->shader->UpdateIfNeeded();
}
}
}*/

World::UpdateObjects();

Expand Down
2 changes: 2 additions & 0 deletions OpenGL/src/VertexArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include "WeakMemoizeConstructor.h"
#include <vector>
#include <tuple>
#include <array>
#include <array>

class VertexBufferLayout;

Expand Down
1 change: 1 addition & 0 deletions OpenGL/src/game_objects/Background.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "Background.h"
#include <array>

Background::Background(const std::string& name, int drawPriority, float x, float y)
: GameObject(name, drawPriority, x, y) {
Expand Down

0 comments on commit bf6afcc

Please sign in to comment.