libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
mx::SubMesh Struct Reference

A range of indices within the shared index buffer, with its own texture. More...

#include <vk_model.hpp>

Collaboration diagram for mx::SubMesh:
[legend]

Public Attributes

uint32_t firstIndex = 0
 Offset into the index buffer.
uint32_t indexCount = 0
 Number of indices in this sub-mesh.
uint32_t textureIndex = 0
 Texture slot for this sub-mesh.
std::string materialName
 Material name from OBJ usemtl directive.

Detailed Description

A range of indices within the shared index buffer, with its own texture.

Definition at line 91 of file vk_model.hpp.

Member Data Documentation

◆ firstIndex

uint32_t mx::SubMesh::firstIndex = 0

Offset into the index buffer.

Definition at line 92 of file vk_model.hpp.

Referenced by mx::MXModel::loadMXMOD(), and mx::MXModel::loadOBJ().

◆ indexCount

uint32_t mx::SubMesh::indexCount = 0

Number of indices in this sub-mesh.

Definition at line 93 of file vk_model.hpp.

Referenced by mx::MXModel::loadMXMOD(), and mx::MXModel::loadOBJ().

◆ materialName

std::string mx::SubMesh::materialName

Material name from OBJ usemtl directive.

Definition at line 95 of file vk_model.hpp.

Referenced by mx::MXModel::loadOBJ().

◆ textureIndex

uint32_t mx::SubMesh::textureIndex = 0

Texture slot for this sub-mesh.

Definition at line 94 of file vk_model.hpp.

Referenced by mx::MXModel::loadMXMOD(), and mx::MXModel::loadOBJ().


The documentation for this struct was generated from the following file: