#include <GL/gl.h>
-#include <assimp/scene.h>
-
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
+#include "assimp_types.h"
+
char* getGlInfoString() {
const char* glVersion = (const char*) glGetString(GL_VERSION);
const char* glslVersion = (const char*) glGetString(GL_SHADING_LANGUAGE_VERSION);
return glInfoString;
}
-void dumpScene(FILE* stream, const struct aiScene* scene) {
+void dumpScene(FILE* stream, const AiScene* scene) {
if (scene == NULL) {
fprintf(stream, "NULL");
return;
(void*) (*scene).mLights);
}
-void dumpNode(FILE* stream, const struct aiNode* node) {
+void dumpNode(FILE* stream, const AiNode* node) {
if (node == NULL) {
fprintf(stream, "NULL");
return;
#ifndef DEBUGUTIL_H_
#define DEBUGUTIL_H_
-#include <assimp/scene.h>
-
#include <stdio.h>
+#include "assimp_types.h"
+
char* getGlInfoString();
-void dumpScene(FILE* stream, const struct aiScene* scene);
-void dumpNode(FILE* stream, const struct aiNode* node);
+void dumpScene(FILE* stream, const AiScene* scene);
+void dumpNode(FILE* stream, const AiNode* node);
#endif
}
const AiScene* importScene(const char* path) {
- const struct aiScene* scene = aiImportFile(path, 0u);
+ const AiScene* scene = aiImportFile(path, 0u);
if (scene == NULL) {
fprintf(stderr, "Asset import failed at file %s\n", path); // TODO factor logging the heck outta here
}
#include <GL/glut.h>
-#include "assimp_types.h"
-
#include "level.h"
-#include "render.h"
#include "typedefs.h"
#include "performance.h"
+#include "render.h"
const float AXIS_RADIUS = 5.0f;
-#include <GL/gl.h>
-
#include <stdlib.h>
#include <stdio.h>