Lugdunum  0.1.0
Public Member Functions | Private Attributes | List of all members
lug::Graphics::Builder::Mesh::PrimitiveSet Class Reference

#include <Mesh.hpp>

Collaboration diagram for lug::Graphics::Builder::Mesh::PrimitiveSet:
[legend]

Public Member Functions

 PrimitiveSet ()=default
 
 PrimitiveSet (const PrimitiveSet &)=delete
 
 PrimitiveSet (PrimitiveSet &&)=default
 
PrimitiveSetoperator= (const PrimitiveSet &)=delete
 
PrimitiveSetoperator= (PrimitiveSet &&)=delete
 
 ~PrimitiveSet ()=default
 
void setMode (Render::Mesh::PrimitiveSet::Mode mode)
 
void setMaterial (Resource::SharedPtr< Render::Material > material)
 
void addAttributeBuffer (const void *data, uint32_t elementSize, uint32_t elementsCount, Render::Mesh::PrimitiveSet::Attribute::Type type)
 
Render::Mesh::PrimitiveSet::Mode getMode () const
 
Resource::SharedPtr< Render::MaterialgetMaterial () const
 
const std::vector< Render::Mesh::PrimitiveSet::Attribute > & getAttributes () const
 

Private Attributes

Render::Mesh::PrimitiveSet::Mode _mode {Render::Mesh::PrimitiveSet::Mode::Triangles}
 
Resource::SharedPtr< Render::Material_material {nullptr}
 
std::vector< Render::Mesh::PrimitiveSet::Attribute_attributes
 

Detailed Description

Definition at line 22 of file Mesh.hpp.

Constructor & Destructor Documentation

◆ PrimitiveSet() [1/3]

lug::Graphics::Builder::Mesh::PrimitiveSet::PrimitiveSet ( )
default

◆ PrimitiveSet() [2/3]

lug::Graphics::Builder::Mesh::PrimitiveSet::PrimitiveSet ( const PrimitiveSet )
delete

◆ PrimitiveSet() [3/3]

lug::Graphics::Builder::Mesh::PrimitiveSet::PrimitiveSet ( PrimitiveSet &&  )
default

◆ ~PrimitiveSet()

lug::Graphics::Builder::Mesh::PrimitiveSet::~PrimitiveSet ( )
default

Member Function Documentation

◆ operator=() [1/2]

PrimitiveSet& lug::Graphics::Builder::Mesh::PrimitiveSet::operator= ( const PrimitiveSet )
delete

◆ operator=() [2/2]

PrimitiveSet& lug::Graphics::Builder::Mesh::PrimitiveSet::operator= ( PrimitiveSet &&  )
delete

◆ setMode()

void Mesh::PrimitiveSet::setMode ( Render::Mesh::PrimitiveSet::Mode  mode)
inline

Definition at line 5 of file Mesh.inl.

◆ setMaterial()

void Mesh::PrimitiveSet::setMaterial ( Resource::SharedPtr< Render::Material material)
inline

Definition at line 1 of file Mesh.inl.

◆ addAttributeBuffer()

void lug::Graphics::Builder::Mesh::PrimitiveSet::addAttributeBuffer ( const void *  data,
uint32_t  elementSize,
uint32_t  elementsCount,
Render::Mesh::PrimitiveSet::Attribute::Type  type 
)

Definition at line 11 of file Mesh.cpp.

◆ getMode()

Render::Mesh::PrimitiveSet::Mode Mesh::PrimitiveSet::getMode ( ) const
inline

Definition at line 9 of file Mesh.inl.

◆ getMaterial()

Resource::SharedPtr< Render::Material > Mesh::PrimitiveSet::getMaterial ( ) const
inline

Definition at line 13 of file Mesh.inl.

◆ getAttributes()

const std::vector< Render::Mesh::PrimitiveSet::Attribute > & Mesh::PrimitiveSet::getAttributes ( ) const
inline

Definition at line 17 of file Mesh.inl.

Member Data Documentation

◆ _mode

Render::Mesh::PrimitiveSet::Mode lug::Graphics::Builder::Mesh::PrimitiveSet::_mode {Render::Mesh::PrimitiveSet::Mode::Triangles}
private

Definition at line 47 of file Mesh.hpp.

◆ _material

Resource::SharedPtr<Render::Material> lug::Graphics::Builder::Mesh::PrimitiveSet::_material {nullptr}
private

Definition at line 48 of file Mesh.hpp.

◆ _attributes

std::vector<Render::Mesh::PrimitiveSet::Attribute> lug::Graphics::Builder::Mesh::PrimitiveSet::_attributes
private

Definition at line 50 of file Mesh.hpp.


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