Assimp  v3.1.1 (June 2014)
model_loading.cpp File Reference

Functions

GLboolean abortGLInit (const char *)
 
void apply_material (const aiMaterial *mtl)
 
void color4_to_float4 (const aiColor4D *c, float f[4])
 
void Color4f (const aiColor4D *color)
 
void createAILogger ()
 
BOOL CreateGLWindow (const char *title, int width, int height, int bits, bool fullscreenflag)
 
void destroyAILogger ()
 
void drawAiScene (const aiScene *scene)
 
int DrawGLScene ()
 
std::string getBasePath (const std::string &path)
 
bool Import3DFromFile (const std::string &pFile)
 
int InitGL ()
 
void KillGLWindow ()
 
int LoadGLTextures (const aiScene *scene)
 
void logDebug (const char *logString)
 
void logInfo (std::string logString)
 
void recursive_render (const struct aiScene *sc, const struct aiNode *nd, float scale)
 
void ReSizeGLScene (GLsizei width, GLsizei height)
 
void set_float4 (float f[4], float a, float b, float c, float d)
 
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
 
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)
 

Variables

bool active =TRUE
 
bool fullscreen =TRUE
 
HDC hDC =NULL
 
HINSTANCE hInstance
 
HGLRC hRC =NULL
 
HWND hWnd =NULL
 
Assimp::Importer importer
 
bool keys [256]
 
GLfloat LightAmbient [] = { 0.5f, 0.5f, 0.5f, 1.0f }
 
GLfloat LightDiffuse [] = { 1.0f, 1.0f, 1.0f, 1.0f }
 
GLfloat LightPosition [] = { 0.0f, 0.0f, 15.0f, 1.0f }
 
static std::string modelpath = "../../test/models/OBJ/spider.obj"
 
const aiScenescene = NULL
 
aiVector3D scene_center
 
GLuint scene_list = 0
 
aiVector3D scene_max
 
aiVector3D scene_min
 
std::map< std::string, GLuint * > textureIdMap
 
GLuint * textureIds
 
const char * windowTitle = "OpenGL Framework"
 
GLfloat xrot
 
GLfloat yrot
 
GLfloat zrot
 

Function Documentation

GLboolean abortGLInit ( const char *  abortMessage)
void apply_material ( const aiMaterial mtl)
void color4_to_float4 ( const aiColor4D c,
float  f[4] 
)
void Color4f ( const aiColor4D color)
void createAILogger ( )
BOOL CreateGLWindow ( const char *  title,
int  width,
int  height,
int  bits,
bool  fullscreenflag 
)
void destroyAILogger ( )
void drawAiScene ( const aiScene scene)
int DrawGLScene ( )
std::string getBasePath ( const std::string &  path)
bool Import3DFromFile ( const std::string &  pFile)
int InitGL ( )
void KillGLWindow ( )
int LoadGLTextures ( const aiScene scene)

wrong DevIL version ///

void logDebug ( const char *  logString)
void logInfo ( std::string  logString)
void recursive_render ( const struct aiScene sc,
const struct aiNode nd,
float  scale 
)
void ReSizeGLScene ( GLsizei  width,
GLsizei  height 
)
void set_float4 ( float  f[4],
float  a,
float  b,
float  c,
float  d 
)
int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nShowCmd 
)
LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Variable Documentation

bool active =TRUE
bool fullscreen =TRUE
HDC hDC =NULL
HINSTANCE hInstance
HGLRC hRC =NULL
HWND hWnd =NULL
Assimp::Importer importer
bool keys[256]
GLfloat LightAmbient[] = { 0.5f, 0.5f, 0.5f, 1.0f }
GLfloat LightDiffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f }
GLfloat LightPosition[] = { 0.0f, 0.0f, 15.0f, 1.0f }
std::string modelpath = "../../test/models/OBJ/spider.obj"
static
const aiScene* scene = NULL
aiVector3D scene_center
GLuint scene_list = 0
aiVector3D scene_max
aiVector3D scene_min
std::map<std::string, GLuint*> textureIdMap
GLuint* textureIds
const char* windowTitle = "OpenGL Framework"
GLfloat xrot
GLfloat yrot
GLfloat zrot