6 //#include "assimp_types.h"
8 char* getGlInfoString() {
9 const char* glVersion = (const char*) glGetString(GL_VERSION);
10 const char* glslVersion = (const char*) glGetString(GL_SHADING_LANGUAGE_VERSION);
11 const char* glRenderer = (const char*) glGetString(GL_RENDERER);
13 size_t glInfoLength = strlen("OpenGL - GLSL - ")
18 char* glInfoString = malloc(glInfoLength + sizeof(char));
20 "OpenGL %s - GLSL %s - %s",
28 void dumpScene(FILE* stream, const AiScene* scene) {
30 fprintf(stream, "NULL");
33 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 }",
35 (void*) (*scene).mRootNode,
37 (void*) (*scene).mMeshes,
38 (*scene).mNumMaterials,
39 (void*) (*scene).mMaterials,
40 (*scene).mNumAnimations,
41 (void*) (*scene).mAnimations,
42 (*scene).mNumTextures,
43 (void*) (*scene).mTextures,
45 (void*) (*scene).mLights);
48 void dumpNode(FILE* stream, const AiNode* node) {
50 fprintf(stream, "NULL");
53 fprintf(stream, "{ mName = %s, mNumMeshes = %u, mMeshes = %p }",
56 (void*) (*node).mMeshes);