Radium Engine
1.5.14
|
Mesh, own a Core::Geometry::TriangleMesh. More...
#include <Engine/Data/Mesh.hpp>
Additional Inherited Members | |
Public Types inherited from Ra::Engine::Data::IndexedGeometry< Core::Geometry::TriangleMesh > | |
using | base = CoreGeometryDisplayable< Core::Geometry::TriangleMesh > |
Public Types inherited from Ra::Engine::Data::CoreGeometryDisplayable< T > | |
using | base = AttribArrayDisplayable |
using | CoreGeometry = T |
Public Types inherited from Ra::Engine::Data::AttribArrayDisplayable | |
enum | MeshRenderMode : uint { RM_POINTS = 0x0000 , RM_LINES = 0x0001 , RM_LINE_LOOP = 0x0002 , RM_LINE_STRIP = 0x0003 , RM_TRIANGLES = 0x0004 , RM_TRIANGLE_STRIP = 0x0005 , RM_TRIANGLE_FAN = 0x0006 , RM_QUADS = 0x0007 , RM_QUAD_STRIP = 0x0008 , RM_POLYGON = 0x0009 , RM_LINES_ADJACENCY = 0x000A , RM_LINE_STRIP_ADJACENCY = 0x000B , RM_TRIANGLES_ADJACENCY = 0x000C , RM_TRIANGLE_STRIP_ADJACENCY = 0x000D , RM_PATCHES = 0x000E } |
Public Types inherited from Ra::Engine::Data::Displayable | |
enum | PickingRenderMode { PKM_POINTS = 0 , PKM_LINES = 1 , PKM_LINE_ADJ = 2 , PKM_TRI = 3 , NO_PICKING } |
Protected Member Functions inherited from Ra::Engine::Data::IndexedGeometry< Core::Geometry::TriangleMesh > | |
void | updateGL_specific_impl () override |
Protected Member Functions inherited from Ra::Engine::Data::CoreGeometryDisplayable< T > | |
void | loadGeometry_common (CoreGeometry &&mesh) |
void | setupCoreMeshObservers () |
void | autoVertexAttribPointer (const ShaderProgram *prog) |
assume m_vao is bound. | |
void | addAttribObserver (const std::string &name) |
void | addToTranslationTable (const std::string &name) |
Protected Member Functions inherited from Ra::Engine::Data::AttribArrayDisplayable | |
void | updatePickingRenderMode () |
Update the picking render mode according to the object render mode. | |
Protected Attributes inherited from Ra::Engine::Data::CoreGeometryDisplayable< T > | |
BijectiveAssociation< std::string, std::string > | m_translationTable {} |
CoreGeometry | m_mesh |
Protected Attributes inherited from Ra::Engine::Data::AttribArrayDisplayable | |
std::unique_ptr< globjects::VertexArray > | m_vao |
MeshRenderMode | m_renderMode { MeshRenderMode::RM_TRIANGLES } |
std::vector< std::unique_ptr< globjects::Buffer > > | m_vbos |
std::vector< bool > | m_dataDirty |
std::map< std::string, unsigned int > | m_handleToBuffer |
bool | m_isDirty { false } |
General dirty bit of the mesh. | |
Protected Attributes inherited from Ra::Engine::Data::Displayable | |
PickingRenderMode | m_pickingRenderMode { NO_PICKING } |
Protected Attributes inherited from Ra::Engine::Data::VaoIndices | |
std::unique_ptr< globjects::Buffer > | m_indices { nullptr } |
bool | m_indicesDirty { true } |
size_t | m_numElements { 0 } |
|
overridevirtual |
Reimplemented from Ra::Engine::Data::Displayable.
void Ra::Engine::Data::Mesh::loadGeometry | ( | const Core::Vector3Array & | vertices, |
const std::vector< uint > & | indices | ||
) |