5 #include <loader/mesh/IMeshLoader.h>
6 #include <render/backend/RenderTypes.h>
7 #include <render/material/MaterialFactory.h>
14 void render(glm::mat4 model, MeshCullType cullType = MeshCullType::BACK);
18 [[nodiscard]] MeshDepthFunction getDepthFunction()
const;
19 void setDepthFunction(MeshDepthFunction
function);
20 [[nodiscard]] std::vector<byte> getMeshData(
const std::string& meshLoader)
const;
21 void appendMeshData(
const std::string& loader,
const std::string& identifier);
23 bool initialized =
false;
25 MeshDrawMode drawMode = MeshDrawMode::STATIC;
26 MeshDepthFunction depthFunction = MeshDepthFunction::LEQUAL;
28 std::vector<Vertex> vertices;
29 std::vector<Index> indices;
void updateMeshData()
Updates the vertex buffers with the current mesh data.
void setupForRendering()
Establishes the vertex buffers and copies the current mesh data into them.
void clearMeshData()
Does not call updateMeshData().