From f2011f48feb7a7ed4139ec6aa1ee874d520f1d86 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Sat, 11 Jun 2022 11:39:51 -0700 Subject: Changeset: 71 Initial work on rendering grid in editor mode, move ImGuizmo out of game project (no more codegen) --- source/30-game/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/30-game/main.cpp') 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); } -- cgit v1.2.3-70-g09d2