5 #include <assimp/scene.h>
7 char* getGlInfoString() {
8 const char* glVersion = (const char*) glGetString(GL_VERSION);
9 const char* glslVersion = (const char*) glGetString(GL_SHADING_LANGUAGE_VERSION);
10 const char* glRenderer = (const char*) glGetString(GL_RENDERER);
12 size_t glInfoLength = strlen("OpenGL - GLSL - ")
17 char* glInfoString = malloc(glInfoLength + sizeof(char));
19 "OpenGL %s - GLSL %s - %s",
27 void dumpScene(FILE* stream, const struct aiScene* scene) {
29 fprintf(stream, "NULL");
32 fprintf(stream, "{ mFlags = %u, mRootNode = %p, mNumMeshes = %u, mMeshes = %p, mNumMaterials = %u, mMaterials = %p, mNumAnimations = %u, mAnimations = %p, mNumTextures = %u, mTextures = %p, mNumLights = %u, mLights = %p }",
34 (void*) (*scene).mRootNode,
36 (void*) (*scene).mMeshes,
37 (*scene).mNumMaterials,
38 (void*) (*scene).mMaterials,
39 (*scene).mNumAnimations,
40 (void*) (*scene).mAnimations,
41 (*scene).mNumTextures,
42 (void*) (*scene).mTextures,
44 (void*) (*scene).mLights);
47 void dumpNode(FILE* stream, const struct aiNode* node) {
49 fprintf(stream, "NULL");
52 fprintf(stream, "{ mName = %s, mNumMeshes = %u, mMeshes = %p }",
55 (void*) (*node).mMeshes);