![]() |
Norbert's Game Engine v200
|
#include <Mesh.hpp>
Public Member Functions | |
| void | ShouldOptimize (const bool vl) |
| Whether or not the mesh should be optimized using meshoptimizer. | |
| bool | IsOptimized () |
| std::vector< eMeshContainer > & | GetContainers () |
| void | Load (eString fileName) |
| void | LoadMem (eString &mem) |
| void | DrawContainer (uint id, eLayer *layer, eTransformation3D transformation, eMaterial *mat=nullptr) |
| void | Draw (eLayer *layer, eTransformation3D transformation, eMaterial *mat=nullptr) |
| const int | DrawInstances (eLayer *layer, std::vector< eTransformation3D > &transformations, eMaterial *mat=nullptr) |
| void | DrawInstances (eLayer *layer, eIDB &idb, eMaterial *mat=nullptr) |
| const int | DrawContainerInstances (uint id, eLayer *layer, std::vector< eTransformation3D > &transformations, eMaterial *mat=nullptr) |
| void | DrawContainerInstances (uint id, eLayer *layer, eIDB &idb, eMaterial *mat=nullptr) |
| void | SetDrawFnc (std::function< eShader *(eMeshContainer &, eLayer *, eTransformation3D, eMaterial *)> fnc) |
Public Member Functions inherited from eBase | |
| template<typename T > | |
| T * | Cast (eBase *obj) |
| Cast class to base. | |
Static Public Member Functions | |
| static void | InitIDB (std::vector< eTransformation3D > &transformations, eIDB &idb) |
| static void | SetRenderer (eRenderer *renderer) |
| static eRenderer * | GetRenderer () |
Protected Member Functions | |
| void | ProcessNode (aiNode *node, const aiScene *scene) |
| eMeshContainer | ProcessMesh (aiMesh *mesh, const aiScene *scene) |
| eMeshContainer | CreateMesh (std::vector< eMeshVertex > vertices, std::vector< uint16 > indices) |
| bool | DrawSingleBegin (eMeshContainer &container, eLayer *layer, eTransformation3D transformation, eMaterial *mat) |
| void | DrawSingleEnd (eShader *shader, eMeshContainer &container, eLayer *layer) |
| void | DrawInsEnd (eMeshContainer &container, eTransformation3D &first, eLayer *layer, eMaterial *mat, bgfx::InstanceDataBuffer &idb) |
Static Protected Member Functions | |
| static const int | DrawInsBegin (std::vector< eTransformation3D > &transformations, bgfx::InstanceDataBuffer &idb) |
Protected Attributes | |
| std::vector< eMeshContainer > | mSubMeshes |
| bool | bOptimize = true |
| std::function< eShader *(eMeshContainer &, eLayer *, eTransformation3D, eMaterial *)> | mDrawFnc |
Static Protected Attributes | |
| static eRenderer * | mRenderer = nullptr |
| Public pointer to renderer. | |
| eMesh::~eMesh | ( | ) |
|
protected |
Definition at line 154 of file Mesh.cpp.
| void eMesh::Draw | ( | eLayer * | layer, |
| eTransformation3D | transformation, | ||
| eMaterial * | mat = nullptr ) |
Definition at line 214 of file Mesh.cpp.
| void eMesh::DrawContainer | ( | uint | id, |
| eLayer * | layer, | ||
| eTransformation3D | transformation, | ||
| eMaterial * | mat = nullptr ) |
Definition at line 204 of file Mesh.cpp.
| void eMesh::DrawContainerInstances | ( | uint | id, |
| eLayer * | layer, | ||
| eIDB & | idb, | ||
| eMaterial * | mat = nullptr ) |
Definition at line 309 of file Mesh.cpp.
| const int eMesh::DrawContainerInstances | ( | uint | id, |
| eLayer * | layer, | ||
| std::vector< eTransformation3D > & | transformations, | ||
| eMaterial * | mat = nullptr ) |
Definition at line 281 of file Mesh.cpp.
|
staticprotected |
Definition at line 334 of file Mesh.cpp.
|
protected |
Definition at line 358 of file Mesh.cpp.
Definition at line 255 of file Mesh.cpp.
| const int eMesh::DrawInstances | ( | eLayer * | layer, |
| std::vector< eTransformation3D > & | transformations, | ||
| eMaterial * | mat = nullptr ) |
Definition at line 226 of file Mesh.cpp.
|
protected |
Definition at line 390 of file Mesh.cpp.
|
protected |
| std::vector< eMeshContainer > & eMesh::GetContainers | ( | ) |
|
static |
| void eMesh::Load | ( | eString | fileName | ) |
Definition at line 43 of file Mesh.cpp.
| void eMesh::LoadMem | ( | eString & | mem | ) |
Definition at line 66 of file Mesh.cpp.
|
protected |
Definition at line 102 of file Mesh.cpp.
|
protected |
Definition at line 89 of file Mesh.cpp.
| void eMesh::SetDrawFnc | ( | std::function< eShader *(eMeshContainer &, eLayer *, eTransformation3D, eMaterial *)> | fnc | ) |
|
static |
| void eMesh::ShouldOptimize | ( | const bool | vl | ) |
|
protected |
|
staticprotected |
|
protected |