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

◆ abortGLInit()

GLboolean abortGLInit ( const char *  abortMessage)

◆ apply_material()

void apply_material ( const aiMaterial mtl)

◆ color4_to_float4()

void color4_to_float4 ( const aiColor4D c,
float  f[4] 
)

◆ Color4f()

void Color4f ( const aiColor4D color)

◆ createAILogger()

void createAILogger ( )

◆ CreateGLWindow()

BOOL CreateGLWindow ( const char *  title,
int  width,
int  height,
int  bits,
bool  fullscreenflag 
)

◆ destroyAILogger()

void destroyAILogger ( )

◆ drawAiScene()

void drawAiScene ( const aiScene scene)

◆ DrawGLScene()

int DrawGLScene ( )

◆ getBasePath()

std::string getBasePath ( const std::string &  path)

◆ Import3DFromFile()

bool Import3DFromFile ( const std::string &  pFile)

◆ InitGL()

int InitGL ( )

◆ KillGLWindow()

void KillGLWindow ( )

◆ LoadGLTextures()

int LoadGLTextures ( const aiScene scene)

wrong DevIL version ///

◆ logDebug()

void logDebug ( const char *  logString)

◆ logInfo()

void logInfo ( std::string  logString)

◆ recursive_render()

void recursive_render ( const struct aiScene sc,
const struct aiNode nd,
float  scale 
)

◆ ReSizeGLScene()

void ReSizeGLScene ( GLsizei  width,
GLsizei  height 
)

◆ set_float4()

void set_float4 ( float  f[4],
float  a,
float  b,
float  c,
float  d 
)

◆ WinMain()

int WINAPI WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nShowCmd 
)

◆ WndProc()

LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Variable Documentation

◆ active

bool active =TRUE

◆ fullscreen

bool fullscreen =TRUE

◆ hDC

HDC hDC =NULL

◆ hInstance

HINSTANCE hInstance

◆ hRC

HGLRC hRC =NULL

◆ hWnd

HWND hWnd =NULL

◆ importer

Assimp::Importer importer

◆ keys

bool keys[256]

◆ LightAmbient

GLfloat LightAmbient[] = { 0.5f, 0.5f, 0.5f, 1.0f }

◆ LightDiffuse

GLfloat LightDiffuse[] = { 1.0f, 1.0f, 1.0f, 1.0f }

◆ LightPosition

GLfloat LightPosition[] = { 0.0f, 0.0f, 15.0f, 1.0f }

◆ modelpath

std::string modelpath = "../../test/models/OBJ/spider.obj"
static

◆ scene

const aiScene* scene = NULL

◆ scene_center

aiVector3D scene_center

◆ scene_list

GLuint scene_list = 0

◆ scene_max

aiVector3D scene_max

◆ scene_min

aiVector3D scene_min

◆ textureIdMap

std::map<std::string, GLuint*> textureIdMap

◆ textureIds

GLuint* textureIds

◆ windowTitle

const char* windowTitle = "OpenGL Framework"

◆ xrot

GLfloat xrot

◆ yrot

GLfloat yrot

◆ zrot

GLfloat zrot