3 #include <Engine/Data/DisplayableObject.hpp>
4 #include <Engine/Data/Mesh.hpp>
5 #include <Engine/Data/Texture.hpp>
6 #include <Engine/RaEngine.hpp>
60 void updateGL()
override;
71 std::unique_ptr<Core::Geometry::AbstractVolume> m_volume;
77 bool m_isDirty {
false };
81 CORE_ASSERT( m_volume,
"Volume is not initialized" );
86 CORE_ASSERT( m_volume,
"Volume is not initialized" );
92 CORE_ASSERT( m_volume,
"Volume is not initialized" );
93 return *m_volume.get();
97 CORE_ASSERT( m_volume,
"Volume is not initialized" );
98 return *m_volume.get();
const std::string & getName() const
Returns the name of the mesh.
Mesh, own a Core::Geometry::TriangleMesh.
const Texture & getDataTexture()
get read access to the 3d texture storing the data
const Core::Geometry::AbstractGeometry & getAbstractGeometry() const override
const Core::Geometry::AbstractVolume & getVolume() const
Returns the underlying AbstractVolume.
void setDirty()
Mark the data types as dirty, forcing an update of the openGL buffer.
size_t getNumFaces() const override
6 quad faces of the cube, thus 12 triangles.
size_t getNumVertices() const override
8 vertices of the cube