#include <Model.h>
Public Member Functions | |
Model (const GLchar *path) | |
void | Draw (Shader shader) |
bool | has_texture () |
Protected Member Functions | |
void | loadModel (std::string path) |
void | processNode (aiNode *node, const aiScene *scene) |
Mesh | processMesh (aiMesh *mesh, const aiScene *scene) |
GLint | TextureFromFile (const char *path, std::string directory) |
std::vector< Mesh::Texture > | loadMaterialTextures (aiMaterial *mat, aiTextureType type, std::string typeName) |
Private Attributes | |
std::vector< Mesh > | meshes_ |
std::string | directory_ |
std::vector< Mesh::Texture > | textures_loaded_ |
Model::Model | ( | const GLchar * | path | ) |
Definition at line 21 of file Model.cpp.
References loadModel().
bool Model::has_texture | ( | ) |
Definition at line 36 of file Model.cpp.
References textures_loaded_.
|
protected |
Definition at line 139 of file Model.cpp.
References directory_, Mesh::Texture::id, Mesh::Texture::path, TextureFromFile(), textures_loaded_, and Mesh::Texture::type.
Referenced by processMesh().
|
protected |
Definition at line 42 of file Model.cpp.
References directory_, and processNode().
Referenced by Model().
|
protected |
Definition at line 84 of file Model.cpp.
References loadMaterialTextures(), Mesh::Vertex::Normal, Mesh::Vertex::Position, and Mesh::Vertex::TexCoords.
Referenced by processNode().
|
protected |
Definition at line 67 of file Model.cpp.
References meshes_, and processMesh().
Referenced by loadModel().
|
protected |
Definition at line 176 of file Model.cpp.
Referenced by loadMaterialTextures().
|
private |
Definition at line 45 of file Model.h.
Referenced by loadMaterialTextures(), and loadModel().
|
private |
Definition at line 43 of file Model.h.
Referenced by Draw(), and processNode().
|
private |
Definition at line 47 of file Model.h.
Referenced by has_texture(), and loadMaterialTextures().