Brenta Engine 1.2
Loading...
Searching...
No Matches
brenta::Mesh Class Reference

Data Structures

class  Builder
 
class  Config
 
class  Vertex
 

Public Types

enum  Shape {
  Triangle , Square , Circle , Pyramid ,
  Cube , Sphere
}
 

Public Member Functions

 Mesh (const Config &conf)
 
constexpr Mesh (const Mesh &)=delete
 
constexpr Meshoperator= (const Mesh &)=delete
 
constexpr Mesh (Mesh &&other) noexcept
 
constexpr Meshoperator= (Mesh &&other) noexcept
 
void draw () const
 

Data Fields

tenno::vector< Vertexvertices
 
tenno::vector< unsigned int > indices
 
tenno::vector< tenno::shared_ptr< Texture > > textures
 

Detailed Description

Definition at line 27 of file mesh.hpp.

Member Enumeration Documentation

◆ Shape

enum brenta::Mesh::Shape

Definition at line 31 of file mesh.hpp.

Constructor & Destructor Documentation

◆ Mesh() [1/2]

Mesh::Mesh ( const Config conf)

Definition at line 14 of file mesh.cpp.

◆ Mesh() [2/2]

constexpr brenta::Mesh::Mesh ( Mesh &&  other)
inlineconstexprnoexcept

Definition at line 56 of file mesh.hpp.

◆ ~Mesh()

Mesh::~Mesh ( )

Definition at line 28 of file mesh.cpp.

Member Function Documentation

◆ draw()

void Mesh::draw ( ) const

Definition at line 73 of file mesh.cpp.

◆ operator=()

constexpr Mesh & brenta::Mesh::operator= ( Mesh &&  other)
inlineconstexprnoexcept

Definition at line 67 of file mesh.hpp.

Field Documentation

◆ indices

tenno::vector<unsigned int> brenta::Mesh::indices

Definition at line 48 of file mesh.hpp.

◆ textures

tenno::vector<tenno::shared_ptr<Texture> > brenta::Mesh::textures

Definition at line 49 of file mesh.hpp.

◆ vertices

tenno::vector<Vertex> brenta::Mesh::vertices

Definition at line 44 of file mesh.hpp.


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