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

View into a glTF accessor's backing buffer data. More...

#include <GltfLoader.h>

Public Member Functions

 GltfBufferDataView (const std::vector< tinygltf::Buffer > &buffers, const std::vector< tinygltf::BufferView > &bufferViews, const tinygltf::Accessor &accessor)
 Resolves an accessor to its buffer view, buffer, and raw data pointer.

Public Attributes

const tinygltf::Accessor & accessor
 Accessor that describes the element count, type, and component type.
const tinygltf::BufferView & bufferView
 Buffer view referenced by accessor.bufferView.
const tinygltf::Buffer & buffer
 Buffer referenced by bufferView.buffer.
const float * data
 Raw pointer to the first accessor byte, interpreted as float data by callers.

Detailed Description

View into a glTF accessor's backing buffer data.

The view stores references into the tinygltf model. The referenced buffers, buffer views, and accessor must outlive this object.

Definition at line 57 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ GltfBufferDataView()

Engine::Assets::Loaders::GltfLoader::GltfBufferDataView::GltfBufferDataView ( const std::vector< tinygltf::Buffer > & buffers,
const std::vector< tinygltf::BufferView > & bufferViews,
const tinygltf::Accessor & accessor )

Resolves an accessor to its buffer view, buffer, and raw data pointer.

Parameters
buffersglTF buffers owned by the model.
bufferViewsglTF buffer views owned by the model.
accessorAccessor to resolve.

References accessor.

Member Data Documentation

◆ accessor

const tinygltf::Accessor& Engine::Assets::Loaders::GltfLoader::GltfBufferDataView::accessor

Accessor that describes the element count, type, and component type.

Definition at line 74 of file GltfLoader.h.

Referenced by GltfBufferDataView().

◆ buffer

const tinygltf::Buffer& Engine::Assets::Loaders::GltfLoader::GltfBufferDataView::buffer

Buffer referenced by bufferView.buffer.

Definition at line 84 of file GltfLoader.h.

◆ bufferView

const tinygltf::BufferView& Engine::Assets::Loaders::GltfLoader::GltfBufferDataView::bufferView

Buffer view referenced by accessor.bufferView.

Definition at line 79 of file GltfLoader.h.

◆ data

const float* Engine::Assets::Loaders::GltfLoader::GltfBufferDataView::data

Raw pointer to the first accessor byte, interpreted as float data by callers.

Definition at line 89 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