Lugdunum  0.1.0
Classes | Public Member Functions | Protected Attributes | Friends | List of all members
lug::Graphics::Builder::Mesh Class Reference

#include <Mesh.hpp>

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

Classes

class  PrimitiveSet
 

Public Member Functions

 Mesh (Renderer &renderer)
 
 Mesh (const Mesh &)=delete
 
 Mesh (Mesh &&)=delete
 
Meshoperator= (const Mesh &)=delete
 
Meshoperator= (Mesh &&)=delete
 
 ~Mesh ()=default
 
void setName (const std::string &name)
 Sets the name. More...
 
PrimitiveSetaddPrimitiveSet ()
 Adds a primitive set to the builder and returns it. More...
 
Resource::SharedPtr< Render::Meshbuild ()
 

Protected Attributes

Renderer_renderer
 
std::string _name
 
std::list< PrimitiveSet_primitiveSets
 

Friends

class PrimitiveSet
 
Resource::SharedPtr< lug::Graphics::Render::Meshlug::Graphics::Vulkan::Builder::Mesh::build (const ::lug::Graphics::Builder::Mesh &)
 

Detailed Description

Definition at line 18 of file Mesh.hpp.

Constructor & Destructor Documentation

◆ Mesh() [1/3]

lug::Graphics::Builder::Mesh::Mesh ( Renderer renderer)
explicit

Definition at line 9 of file Mesh.cpp.

◆ Mesh() [2/3]

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

◆ Mesh() [3/3]

lug::Graphics::Builder::Mesh::Mesh ( Mesh &&  )
delete

◆ ~Mesh()

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

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ setName()

void Mesh::setName ( const std::string &  name)
inline

Sets the name.

Parameters
[in]nameThe name of the mesh.

Definition at line 26 of file Mesh.inl.

◆ addPrimitiveSet()

Mesh::PrimitiveSet * Mesh::addPrimitiveSet ( )
inline

Adds a primitive set to the builder and returns it.

Definition at line 21 of file Mesh.inl.

◆ build()

Resource::SharedPtr< Render::Mesh > lug::Graphics::Builder::Mesh::build ( )

Definition at line 24 of file Mesh.cpp.

Friends And Related Function Documentation

◆ PrimitiveSet

friend class PrimitiveSet
friend

Definition at line 53 of file Mesh.hpp.

◆ lug::Graphics::Vulkan::Builder::Mesh::build

Member Data Documentation

◆ _renderer

Renderer& lug::Graphics::Builder::Mesh::_renderer
protected

Definition at line 80 of file Mesh.hpp.

◆ _name

std::string lug::Graphics::Builder::Mesh::_name
protected

Definition at line 82 of file Mesh.hpp.

◆ _primitiveSets

std::list<PrimitiveSet> lug::Graphics::Builder::Mesh::_primitiveSets
protected

Definition at line 83 of file Mesh.hpp.


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