]> git.lizzy.rs Git - shadowclad.git/commitdiff
Add and move version logging, disable import debug 19-glfw
authoroutfrost <kotlet.bahn@gmail.com>
Tue, 23 Jun 2020 00:26:29 +0000 (02:26 +0200)
committeroutfrost <kotlet.bahn@gmail.com>
Tue, 23 Jun 2020 00:26:29 +0000 (02:26 +0200)
src/engine/asset.c
src/main.c

index b7d5346cce8f70333c4ebff088a98362ccd83d64..9261b0236e061f32f8fe2e2e95bcd539fe676c79 100644 (file)
@@ -11,7 +11,7 @@
 #include "string.h"
 #include "tga.h"
 
-#define IMPORT_DEBUG_ 1
+#define IMPORT_DEBUG_ 0
 
 static const float smoothingThresholdAngle = TAU / 14.0f;
 
index a4be117dc79917e7d8533bda2f5483f6ec3a9c3f..bd2fe9d18b8642095bc1237cf6b3be2778471ab7 100644 (file)
@@ -1,3 +1,4 @@
+#include <assimp/version.h>
 #include <GL/glxew.h>
 #include <GLFW/glfw3.h>
 
 void onGlfwError(int error, const char* description);
 
 int main(/*int argc, char** argv*/) {
+       logInfo("Assimp %u.%u", aiGetVersionMajor(), aiGetVersionMinor());
+       logInfo("GLEW %s", (const char*) glewGetString(GLEW_VERSION));
+       logInfo("GLFW %s", glfwGetVersionString());
+
        glfwSetErrorCallback(onGlfwError);
 
        if (!glfwInit()) {
@@ -42,7 +47,6 @@ int main(/*int argc, char** argv*/) {
                logError("GLEW init failed: %s", (const char*) glewGetErrorString(glewInitStatus));
                return 1;
        }
-       logInfo("GLEW %s", (const char*) glewGetString(GLEW_VERSION));
 /*
        if (GLXEW_EXT_swap_control) {
                Display* display = glXGetCurrentDisplay();