Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
eng::Mesh Class Reference

#include <Mesh.h>

Public Member Functions

 Mesh (const VertexLayout &layout, const std::vector< float > &vertices, const std::vector< uint32_t > &indices)
 
 Mesh (const VertexLayout &layout, const std::vector< float > &vertices)
 
 Mesh (const Mesh &)=delete
 
Meshoperator= (const Mesh &)=delete
 
void Bind ()
 
void Unbind ()
 
void Draw ()
 

Static Public Member Functions

static std::shared_ptr< MeshCreateBox (const glm::vec3 &extents=glm::vec3(1.0f))
 
static std::shared_ptr< MeshCreateSphere (float radius, int sectors, int stacks)
 
static std::shared_ptr< MeshCreatePlane ()
 

Detailed Description

Definition at line 12 of file Mesh.h.

Constructor & Destructor Documentation

◆ Mesh() [1/3]

eng::Mesh::Mesh ( const VertexLayout layout,
const std::vector< float > &  vertices,
const std::vector< uint32_t > &  indices 
)

◆ Mesh() [2/3]

eng::Mesh::Mesh ( const VertexLayout layout,
const std::vector< float > &  vertices 
)

◆ Mesh() [3/3]

eng::Mesh::Mesh ( const Mesh )
delete

Member Function Documentation

◆ Bind()

void eng::Mesh::Bind ( )

Definition at line 64 of file Mesh.cpp.

◆ CreateBox()

std::shared_ptr< Mesh > eng::Mesh::CreateBox ( const glm::vec3 &  extents = glm::vec3(1.0f))
static

◆ CreatePlane()

std::shared_ptr< Mesh > eng::Mesh::CreatePlane ( )
static

◆ CreateSphere()

std::shared_ptr< Mesh > eng::Mesh::CreateSphere ( float  radius,
int  sectors,
int  stacks 
)
static

◆ Draw()

void eng::Mesh::Draw ( )

Definition at line 74 of file Mesh.cpp.

◆ operator=()

Mesh & eng::Mesh::operator= ( const Mesh )
delete

◆ Unbind()

void eng::Mesh::Unbind ( )

Definition at line 69 of file Mesh.cpp.


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