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

Optional image payload extracted from tinygltf. More...

#include <GltfLoader.h>

Public Member Functions

 GltfTextureData ()=default
 Creates an empty texture payload.
 GltfTextureData (const tinygltf::Image &image)
 Stores an image payload from tinygltf.
tinygltf::Image getImage () const
 Gets the stored tinygltf image.
bool hasTextureData () const
 Checks whether an image payload is stored.

Private Attributes

tinygltf::Image image = tinygltf::Image()

Detailed Description

Optional image payload extracted from tinygltf.

Definition at line 172 of file GltfLoader.h.

Constructor & Destructor Documentation

◆ GltfTextureData() [1/2]

Engine::Assets::Loaders::GltfLoader::GltfTextureData::GltfTextureData ( )
default

Creates an empty texture payload.

◆ GltfTextureData() [2/2]

Engine::Assets::Loaders::GltfLoader::GltfTextureData::GltfTextureData ( const tinygltf::Image & image)
inline

Stores an image payload from tinygltf.

Parameters
imageImage data to store.

Definition at line 183 of file GltfLoader.h.

References image.

Member Function Documentation

◆ getImage()

tinygltf::Image Engine::Assets::Loaders::GltfLoader::GltfTextureData::getImage ( ) const
inlinenodiscard

Gets the stored tinygltf image.

Returns
Image payload. Empty when hasTextureData() is false.

Definition at line 189 of file GltfLoader.h.

References image.

◆ hasTextureData()

bool Engine::Assets::Loaders::GltfLoader::GltfTextureData::hasTextureData ( ) const
nodiscard

Checks whether an image payload is stored.

Returns
True when this object contains texture data.

Member Data Documentation

◆ image

tinygltf::Image Engine::Assets::Loaders::GltfLoader::GltfTextureData::image = tinygltf::Image()
private

Definition at line 201 of file GltfLoader.h.

Referenced by getImage(), and GltfTextureData().


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