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

A Mesh, which itsef is a Resource. A mesh is composed of a vector of PrimitiveSet. More...

#include <Mesh.hpp>

Inheritance diagram for lug::Graphics::Render::Mesh:
[legend]
Collaboration diagram for lug::Graphics::Render::Mesh:
[legend]

Classes

struct  PrimitiveSet
 Describes part of a Mesh. More...
 

Public Member Functions

 Mesh (const Mesh &)=delete
 
 Mesh (Mesh &&)=delete
 
Meshoperator= (const Mesh &)=delete
 
Meshoperator= (Mesh &&)=delete
 
virtual ~Mesh ()
 
const std::vector< Mesh::PrimitiveSet > & getPrimitiveSets () const
 
- Public Member Functions inherited from lug::Graphics::Resource
 Resource (Type type, const std::string &name)
 
 Resource (const Resource &)=delete
 
 Resource (Resource &&)=delete
 
Resourceoperator= (const Resource &)=delete
 
Resourceoperator= (Resource &&)=delete
 
virtual ~Resource ()=default
 
Type getType () const
 Returns the type of the Resource. More...
 
Handle getHandle () const
 Returns the handle of the Resource. More...
 
const std::string & getName () const
 Gets the name of the Resource. More...
 
void setName (const std::string &name)
 Sets the name of the Resource. More...
 

Protected Member Functions

 Mesh (const std::string &name)
 

Protected Attributes

std::vector< PrimitiveSet_primitiveSets
 
- Protected Attributes inherited from lug::Graphics::Resource
std::string _name
 

Friends

class ::lug::Graphics::Builder::Mesh
 

Additional Inherited Members

- Public Types inherited from lug::Graphics::Resource
enum  Type : uint8_t {
  Type::Scene, Type::SceneNode, Type::Material, Type::Mesh,
  Type::Light, Type::Texture, Type::Pipeline, Type::Camera,
  Type::SkyBox
}
 Type of the resource. More...
 

Detailed Description

A Mesh, which itsef is a Resource. A mesh is composed of a vector of PrimitiveSet.

See also
Mesh::PrimitiveSet

Definition at line 26 of file Mesh.hpp.

Constructor & Destructor Documentation

◆ Mesh() [1/3]

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

◆ Mesh() [2/3]

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

◆ ~Mesh()

lug::Graphics::Render::Mesh::~Mesh ( )
virtual

Reimplemented in lug::Graphics::Vulkan::Render::Mesh.

Definition at line 9 of file Mesh.cpp.

◆ Mesh() [3/3]

lug::Graphics::Render::Mesh::Mesh ( const std::string &  name)
explicitprotected

Definition at line 7 of file Mesh.cpp.

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ getPrimitiveSets()

const std::vector< Mesh::PrimitiveSet > & Mesh::getPrimitiveSets ( ) const
inline

Definition at line 1 of file Mesh.inl.

Friends And Related Function Documentation

◆ ::lug::Graphics::Builder::Mesh

friend class ::lug::Graphics::Builder::Mesh
friend

Definition at line 27 of file Mesh.hpp.

Member Data Documentation

◆ _primitiveSets

std::vector<PrimitiveSet> lug::Graphics::Render::Mesh::_primitiveSets
protected

Definition at line 97 of file Mesh.hpp.


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