Assimp  v4.1. (December 2018)
glTF::Image Struct Reference

Image data used to create a texture. More...

Inherits glTF::Object.

Public Member Functions

const uint8_tGetData () const
 
size_t GetDataLength () const
 
bool HasData () const
 
 Image ()
 
void Read (Value &obj, Asset &r)
 
void SetData (uint8_t *data, size_t length, Asset &r)
 
uint8_tStealData ()
 
- Public Member Functions inherited from glTF::Object
virtual bool IsSpecial () const
 Objects marked as special are not exported (used to emulate the binary body buffer) More...
 
virtual ~Object ()
 

Public Attributes

Ref< BufferViewbufferView
 The uri of the image, that can be a file path, a data URI, etc.. (required) More...
 
int height
 
std::string mimeType
 
std::string uri
 
int width
 
- Public Attributes inherited from glTF::Object
std::string id
 The globally unique ID used to reference this object. More...
 
std::string name
 The user-defined name of this object. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from glTF::Object
static const char * TranslateId (Asset &, const char *id)
 Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
 

Detailed Description

Image data used to create a texture.

Constructor & Destructor Documentation

◆ Image()

glTF::Image::Image ( )
inline

Member Function Documentation

◆ GetData()

const uint8_t* glTF::Image::GetData ( ) const
inline

◆ GetDataLength()

size_t glTF::Image::GetDataLength ( ) const
inline

◆ HasData()

bool glTF::Image::HasData ( ) const
inline

◆ Read()

void glTF::Image::Read ( Value obj,
Asset r 
)
inline

◆ SetData()

void glTF::Image::SetData ( uint8_t data,
size_t  length,
Asset r 
)
inline

◆ StealData()

uint8_t * glTF::Image::StealData ( )
inline

Member Data Documentation

◆ bufferView

Ref<BufferView> glTF::Image::bufferView

The uri of the image, that can be a file path, a data URI, etc.. (required)

◆ height

int glTF::Image::height

◆ mimeType

std::string glTF::Image::mimeType

◆ uri

std::string glTF::Image::uri

◆ width

int glTF::Image::width

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