Skip to content

Core::Mesh::MeshPart

Individual part of the bigger mesh containing separate geometry, material and textures.

#include "Core/Resources/Mesh.h"

Public Attributes

Name
GLuintbaseVertex <br>vertex in array of vertices added to index in the index buffer
glm::vec3boundingBoxMax
glm::vec3boundingBoxMin
Materialmaterial
std::stringname
GLuintnIndices <br>number of indices in this submesh
GLuintstartIndex <br>first index in array of indices
TextureSettextureSet

Public Attributes Documentation

variable baseVertex

cpp
GLuint baseVertex;
GLuint baseVertex;

vertex in array of vertices added to index in the index buffer

variable boundingBoxMax

cpp
glm::vec3 boundingBoxMax {0.0f};
glm::vec3 boundingBoxMax {0.0f};

variable boundingBoxMin

cpp
glm::vec3 boundingBoxMin {0.0f};
glm::vec3 boundingBoxMin {0.0f};

variable material

cpp
Material material;
Material material;

variable name

cpp
std::string name;
std::string name;

variable nIndices

cpp
GLuint nIndices;
GLuint nIndices;

number of indices in this submesh

variable startIndex

cpp
GLuint startIndex;
GLuint startIndex;

first index in array of indices

variable textureSet

cpp
TextureSet textureSet;
TextureSet textureSet;

Updated on 2024-11-06 at 20:16:54 +0000