Ocular Engine
Ocular::Graphics::MeshEmpty Class Reference

Special default 'empty' Mesh. Typically used internally. More...

#include <MeshEmpty.hpp>

Inheritance diagram for Ocular::Graphics::MeshEmpty:
Ocular::Graphics::Mesh Ocular::Core::Resource

Public Member Functions

virtual bool bind () override
 
virtual void unbind () override
 
virtual void unload () override
 
- Public Member Functions inherited from Ocular::Graphics::Mesh
void setVertexBuffer (VertexBuffer *buffer, uint32_t submesh=0)
 
VertexBuffergetVertexBuffer (uint32_t submesh=0)
 
void setIndexBuffer (IndexBuffer *buffer, uint32_t submesh=0)
 
IndexBuffergetIndexBuffer (uint32_t submesh=0)
 
void calculateMinMaxPoints ()
 
void setMinMaxPoints (Math::Vector3f const &min, Math::Vector3f const &max)
 
Math::Vector3f const & getMinPoint () const
 
Math::Vector3f const & getMaxPoint () const
 
SubMeshgetSubMesh (uint32_t index) const
 
uint32_t addSubMesh (SubMesh *submesh=nullptr)
 
bool setSubMesh (SubMesh *submesh, uint32_t index)
 
bool removeSubMesh (uint32_t index)
 
uint32_t getNumSubMeshes () const
 
- Public Member Functions inherited from Ocular::Core::Resource
 Resource (File const &source)
 
virtual void forceLoad ()
 
File getSourceFile () const
 
void setSourceFile (File const &file)
 
void setIsInMemory (bool inMemory)
 
bool isInMemory () const
 
void setSize (uint64_t size)
 
uint64_t getSize () const
 
ResourceType getResourceType () const
 
void setName (std::string const &name)
 
std::string const & getName () const
 
std::string const & getMappingName () const
 
void setMappingName (std::string const &name)
 
ResourceMetadatagetMetadata () const
 
void setMetadata (ResourceMetadata *metadata)
 

Additional Inherited Members

- Protected Attributes inherited from Ocular::Graphics::Mesh
Math::Vector3f m_MinPoint
 
Math::Vector3f m_MaxPoint
 
std::vector< SubMesh * > m_SubMeshes
 
- Protected Attributes inherited from Ocular::Core::Resource
ResourceType m_Type
 
ResourceMetadatam_Metadata
 
File m_SourceFile
 
bool m_IsInMemory
 
uint64_t m_SizeInMemory
 
std::string m_Name
 
std::string m_MappingName
 

Detailed Description

Special default 'empty' Mesh. Typically used internally.

Member Function Documentation

bool Ocular::Graphics::MeshEmpty::bind ( )
overridevirtual
Returns
Always returns TRUE while performing no action.

Reimplemented from Ocular::Graphics::Mesh.

void Ocular::Graphics::MeshEmpty::unbind ( )
overridevirtual

Performs no action.

Reimplemented from Ocular::Graphics::Mesh.

void Ocular::Graphics::MeshEmpty::unload ( )
overridevirtual

Performs no action.

Reimplemented from Ocular::Graphics::Mesh.


The documentation for this class was generated from the following files: