6 #include <assimp/Importer.hpp> 7 #include <assimp/scene.h> 8 #include <assimp/postprocess.h> 10 namespace fireworks {
namespace graphics {
34 std::string m_Directory;
35 std::vector<Texture> m_LoadedTextures;
50 void submit(
Renderer3D* renderer)
const override;
51 void loadModel(std::string path);
52 Mesh processNode(aiNode* node,
const aiScene* scene);
53 SubMesh processMesh(aiMesh* mesh,
const aiScene* scene);
54 std::vector<Texture> loadMaterialTextures(aiMaterial* material, aiTextureType texType, std::string typeName);
GLuint trisCount
The triangles count of the 3d model.
Definition: model.h:27
std::vector< Texture > material_textures
Definition: model.h:17
Creates Index Buffers.
Definition: indexbuffer.h:11
The 3D mesh of a 3d renderable object.
Definition: mesh.h:15
std::vector< SubMesh > subMeshes
Collections of sub-meshes that make up the 3d models.
Definition: model.h:29
Mesh & getMasterMesh()
Returns the root mesh that is a congregation of all sub-meshes.
Definition: model.h:48
The Class responsible for drawing the basic 3D Renderable objects onto the screen.
Definition: renderable3d.h:66
Definition: audioclip.cpp:3
The class responsible for creating amazing shaders.
Definition: Shader.h:22
std::vector< GLushort > indices
Definition: model.h:16
Forward declaration of the graphics::Renderable3D.
Definition: renderer3d.h:16
GLuint vertexCount
The vertex count of the 3d model.
Definition: model.h:25
IndexBuffer * modelIBO
The index buffer of the 3d model.
Definition: model.h:31
A 3D model object loaded externally.
Definition: model.h:21
std::vector< VertexData3D > vertices
Definition: model.h:15
A struct denoting the sub-meshes of a 3d Model.
Definition: model.h:13