diff options
author | rtk0c <[email protected]> | 2022-06-11 11:39:51 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-06-11 11:39:51 -0700 |
commit | f2011f48feb7a7ed4139ec6aa1ee874d520f1d86 (patch) | |
tree | 689af72d2d90c55851e84fb7fb8647b60dcba291 /source/30-game/main.cpp | |
parent | f29a141ab4c4308aed66f930a6f3a42cd20a482d (diff) |
Changeset: 71 Initial work on rendering grid in editor mode, move ImGuizmo out of game project (no more codegen)
Diffstat (limited to 'source/30-game/main.cpp')
-rw-r--r-- | source/30-game/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/30-game/main.cpp b/source/30-game/main.cpp index 89f0e97..d98f225 100644 --- a/source/30-game/main.cpp +++ b/source/30-game/main.cpp @@ -2,7 +2,7 @@ #include "AppConfig.hpp" #include "CommonVertexIndex.hpp" -#include "EditorGuizmo.hpp" +#include "ImGuiGuizmo.hpp" #include "Ires.hpp" #include "Level.hpp" #include "Material.hpp" @@ -36,7 +36,7 @@ void GlfwErrorCallback(int error, const char* description) { fprintf(stderr, "[GLFW] Error %d: %s\n", error, description); } -void OpenGLDebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam​) { +void OpenGLDebugCallback(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* message, const void* userParam) { fprintf(stderr, "GL CALLBACK: %s type = 0x%x, severity = 0x%x, message = %s\n", (type == GL_DEBUG_TYPE_ERROR ? "** GL ERROR **" : ""), type, severity, message); } @@ -259,7 +259,7 @@ int main(int argc, char* argv[]) { // TODO check extension KHR_debug availability // TODO conan glad is not including any extensions // NOTE: KHR_debug is a core extension, which means it may be available in lower version even though the feature is added in 4.3 - + glEnable(GL_DEBUG_OUTPUT); glDebugMessageCallback(&OpenGLDebugCallback, 0); } |