Skip to main content

Module unity_image

Module unity_image 

Source

Functions§

gltforge_image_bytes
Return a pointer to the raw encoded image bytes (PNG, JPEG, …) for a buffer-view-embedded image. out_len receives the byte count. Returns null if image_idx is out of range or the image is URI-based.
gltforge_image_count
Return the number of images.
gltforge_image_name
Return a pointer to the UTF-8 name bytes for image image_idx. out_len receives the byte length. Returns null if image_idx is out of range.
gltforge_image_uri
Return a pointer to the UTF-8 URI bytes for image image_idx. out_len receives the byte length. Returns null if image_idx is out of range or the image is buffer-view-embedded.