Add and move version logging, disable import debug
This commit is contained in:
parent
d82e6263e8
commit
3b45ae5a19
@ -11,7 +11,7 @@
|
|||||||
#include "string.h"
|
#include "string.h"
|
||||||
#include "tga.h"
|
#include "tga.h"
|
||||||
|
|
||||||
#define IMPORT_DEBUG_ 1
|
#define IMPORT_DEBUG_ 0
|
||||||
|
|
||||||
static const float smoothingThresholdAngle = TAU / 14.0f;
|
static const float smoothingThresholdAngle = TAU / 14.0f;
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
#include <assimp/version.h>
|
||||||
#include <GL/glxew.h>
|
#include <GL/glxew.h>
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
@ -13,6 +14,10 @@
|
|||||||
void onGlfwError(int error, const char* description);
|
void onGlfwError(int error, const char* description);
|
||||||
|
|
||||||
int main(/*int argc, char** argv*/) {
|
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);
|
glfwSetErrorCallback(onGlfwError);
|
||||||
|
|
||||||
if (!glfwInit()) {
|
if (!glfwInit()) {
|
||||||
@ -42,7 +47,6 @@ int main(/*int argc, char** argv*/) {
|
|||||||
logError("GLEW init failed: %s", (const char*) glewGetErrorString(glewInitStatus));
|
logError("GLEW init failed: %s", (const char*) glewGetErrorString(glewInitStatus));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
logInfo("GLEW %s", (const char*) glewGetString(GLEW_VERSION));
|
|
||||||
/*
|
/*
|
||||||
if (GLXEW_EXT_swap_control) {
|
if (GLXEW_EXT_swap_control) {
|
||||||
Display* display = glXGetCurrentDisplay();
|
Display* display = glXGetCurrentDisplay();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user