Gltf Image
class GltfImage
Image bytes + MIME type as embedded in (or referenced by) the glTF asset. The reader resolves bufferView-embedded images at parse time so consumers get raw decode-ready bytes either way.
Properties
Link copied to clipboard
Image height in pixels when decodedRgba is non-null. 0 otherwise.
Link copied to clipboard
Pre-decoded RGBA8888 pixel buffer when this image came in via KHR_texture_basisu and a Ktx2Decoder was registered. Row-major from top-left, 4 bytes per pixel. Null when the image is still in raw bytes form.
Link copied to clipboard
Image width in pixels when decodedRgba is non-null. 0 otherwise.