18 #ifndef __H__OCULAR_CORE_SCENE_RENDERABLE_MESH__H__
19 #define __H__OCULAR_CORE_SCENE_RENDERABLE_MESH__H__
21 #include "Scene/ARenderable.hpp"
76 virtual bool initialize()
override;
79 virtual void render()
override;
100 bool setMesh(std::string
const& name);
145 bool setMaterial(std::string
const& name, uint32_t index = 0,
bool resize =
false);
185 bool validateMaterialIndex(uint32_t index,
bool resize);
191 std::vector<Graphics::Material*> m_Materials;
virtual void onLoad(BuilderNode const *node) override
Definition: MeshRenderable.cpp:113
virtual bool preRender() override
Definition: MeshRenderable.cpp:68
uint32_t getNumMaterials() const
Definition: MeshRenderable.cpp:355
uint32_t addMaterial(std::string const &name)
Definition: MeshRenderable.cpp:298
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Definition: BoundsOBB.hpp:56
virtual void render() override
Definition: MeshRenderable.cpp:75
virtual uint32_t getRenderPriority() const override
Definition: MeshRenderable.cpp:245
Combination of a VertexBuffer and IndexBuffer.
Definition: Mesh.hpp:49
Definition: SceneObject.hpp:93
bool setMaterial(std::string const &name, uint32_t index=0, bool resize=false)
Definition: MeshRenderable.cpp:314
Graphics::Material * getMaterial(uint32_t index=0) const
Definition: MeshRenderable.cpp:343
Definition: ARenderable.hpp:53
bool setMesh(std::string const &name)
Definition: MeshRenderable.cpp:261
virtual void onSave(BuilderNode *node) const override
Definition: MeshRenderable.cpp:139
Graphics::Mesh * getMesh() const
Definition: MeshRenderable.cpp:289
Generic node system used for loading and saving SceneObjects and their components.
Definition: BuilderNode.hpp:51
A 4x4 column-major float matrix.
Definition: Matrix4x4.hpp:64
Definition: MeshRenderable.hpp:65
Definition: BoundsAABB.hpp:63
Definition: BoundsSphere.hpp:52
void removeMaterial(uint32_t index)
Definition: MeshRenderable.cpp:335
Definition: Material.hpp:62