|
Monad Engine da02fba2
> Undercity Codex_
|
#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 | |
| Mesh & | operator= (const Mesh &)=delete |
| void | Bind () |
| void | Unbind () |
| void | Draw () |
Static Public Member Functions | |
| static std::shared_ptr< Mesh > | CreateBox (const glm::vec3 &extents=glm::vec3(1.0f)) |
| static std::shared_ptr< Mesh > | CreateSphere (float radius, int sectors, int stacks) |
| static std::shared_ptr< Mesh > | CreatePlane () |
| eng::Mesh::Mesh | ( | const VertexLayout & | layout, |
| const std::vector< float > & | vertices, | ||
| const std::vector< uint32_t > & | indices | ||
| ) |
Definition at line 7 of file Mesh.cpp.
References eng::VertexLayout::elements, eng::Engine::GetGraphicsAPI(), eng::Engine::GetInstance(), and eng::VertexLayout::stride.
| eng::Mesh::Mesh | ( | const VertexLayout & | layout, |
| const std::vector< float > & | vertices | ||
| ) |
Definition at line 38 of file Mesh.cpp.
References eng::VertexLayout::elements, eng::Engine::GetGraphicsAPI(), eng::Engine::GetInstance(), and eng::VertexLayout::stride.
|
delete |
|
static |
Definition at line 86 of file Mesh.cpp.
References eng::VertexElement::ColorIndex, eng::VertexLayout::elements, eng::VertexElement::NormalIndex, eng::VertexElement::PositionIndex, eng::VertexLayout::stride, and eng::VertexElement::UVIndex.
Referenced by eng::MeshComponent::LoadProperties().
|
static |
Definition at line 277 of file Mesh.cpp.
References eng::VertexLayout::elements, eng::VertexElement::PositionIndex, and eng::VertexLayout::stride.
Referenced by eng::RenderQueue::Init().
|
static |
Definition at line 187 of file Mesh.cpp.
References eng::VertexLayout::elements, eng::VertexElement::NormalIndex, eng::VertexElement::PositionIndex, eng::VertexLayout::stride, and eng::VertexElement::UVIndex.
Referenced by eng::MeshComponent::LoadProperties(), and Player::Update().