Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Engine::Assets::Loaders::GltfLoader::GltfVertexData Struct Reference

Resolved vertex attribute and index views for a glTF primitive. More...

#include <GltfLoader.h>

Public Member Functions

 GltfVertexData (const std::vector< tinygltf::Buffer > &buffers, const std::vector< tinygltf::BufferView > &bufferViews, const std::vector< tinygltf::Accessor > &accessors, const tinygltf::Primitive &primitive)
 Extracts known attribute views from a primitive.

Public Attributes

std::optional< GltfBufferDataViewpositionDataView
 POSITION attribute view when present.
std::optional< GltfBufferDataViewnormalDataView
 NORMAL attribute view when present.
std::optional< GltfBufferDataViewtangentDataView
 TANGENT attribute view when present. The xyz values store tangent direction and w stores handedness.
std::optional< GltfBufferDataViewuvDataView
 TEXCOORD_0 attribute view when present.
std::optional< GltfBufferDataViewlightmapDataView
 TEXCOORD_1 attribute view when present.
std::optional< GltfBufferDataViewindexDataView
 Primitive index accessor view.
std::optional< GltfBufferDataViewjointsDataView
 JOINTS_0 attribute view when present.
std::optional< GltfBufferDataViewweightsDataView
 WEIGHTS_0 attribute view when present.

Detailed Description

Resolved vertex attribute and index views for a glTF primitive.

Definition at line 95 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ GltfVertexData()

Engine::Assets::Loaders::GltfLoader::GltfVertexData::GltfVertexData ( const std::vector< tinygltf::Buffer > & buffers,
const std::vector< tinygltf::BufferView > & bufferViews,
const std::vector< tinygltf::Accessor > & accessors,
const tinygltf::Primitive & primitive )

Extracts known attribute views from a primitive.

Parameters
buffersglTF buffers owned by the model.
bufferViewsglTF buffer views owned by the model.
accessorsglTF accessors owned by the model.
primitivePrimitive whose attributes and indices are resolved.

Member Data Documentation

◆ indexDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::indexDataView

Primitive index accessor view.

Definition at line 141 of file GltfLoader.h.

◆ jointsDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::jointsDataView

JOINTS_0 attribute view when present.

JOINTS_0 (typically uint16 x4)

Definition at line 146 of file GltfLoader.h.

◆ lightmapDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::lightmapDataView

TEXCOORD_1 attribute view when present.

Definition at line 136 of file GltfLoader.h.

◆ normalDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::normalDataView

NORMAL attribute view when present.

Definition at line 119 of file GltfLoader.h.

◆ positionDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::positionDataView

POSITION attribute view when present.

Definition at line 114 of file GltfLoader.h.

◆ tangentDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::tangentDataView

TANGENT attribute view when present. The xyz values store tangent direction and w stores handedness.

Definition at line 126 of file GltfLoader.h.

◆ uvDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::uvDataView

TEXCOORD_0 attribute view when present.

Definition at line 131 of file GltfLoader.h.

◆ weightsDataView

std::optional<GltfBufferDataView> Engine::Assets::Loaders::GltfLoader::GltfVertexData::weightsDataView

WEIGHTS_0 attribute view when present.

WEIGHTS_0 (float x4)

Definition at line 151 of file GltfLoader.h.


The documentation for this struct was generated from the following file:
  • /home/magerbeton/Documents/gl3-vulkan/Engine/include/Engine/Mesh/GltfLoader.h