18 #ifndef __H__OCULAR_GRAPHICS_MESH__H__
19 #define __H__OCULAR_GRAPHICS_MESH__H__
21 #include "Resources/Resource.hpp"
22 #include "Graphics/Mesh/SubMesh.hpp"
23 #include "Math/Vector3.hpp"
77 virtual void unload()
override;
234 std::vector<SubMesh*> m_SubMeshes;
Definition: VertexBuffer.hpp:78
virtual void unload() override
Definition: Mesh.cpp:67
void setIndexBuffer(IndexBuffer *buffer, uint32_t submesh=0)
Definition: Mesh.cpp:112
uint32_t getNumSubMeshes() const
Definition: Mesh.cpp:280
void setVertexBuffer(VertexBuffer *buffer, uint32_t submesh=0)
Definition: Mesh.cpp:82
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
bool removeSubMesh(uint32_t index)
Definition: Mesh.cpp:261
virtual void unbind()
Definition: Mesh.cpp:62
Math::Vector3f const & getMinPoint() const
Definition: Mesh.cpp:193
Combination of a VertexBuffer and IndexBuffer.
Definition: Mesh.hpp:49
bool setSubMesh(SubMesh *submesh, uint32_t index)
Definition: Mesh.cpp:235
uint32_t addSubMesh(SubMesh *submesh=nullptr)
Definition: Mesh.cpp:219
SubMesh * getSubMesh(uint32_t index) const
Definition: Mesh.cpp:207
VertexBuffer * getVertexBuffer(uint32_t submesh=0)
Definition: Mesh.cpp:95
void calculateMinMaxPoints()
Definition: Mesh.cpp:146
Math::Vector3f const & getMaxPoint() const
Definition: Mesh.cpp:198
Definition: IndexBuffer.hpp:77
virtual bool bind()
Definition: Mesh.cpp:55
void setMinMaxPoints(Math::Vector3f const &min, Math::Vector3f const &max)
Definition: Mesh.cpp:187
Combination of a VertexBuffer and IndexBuffer.
Definition: SubMesh.hpp:45
Definition: Resource.hpp:46
IndexBuffer * getIndexBuffer(uint32_t submesh=0)
Definition: Mesh.cpp:125