Module sprite

Module sprite 

Source
Expand description

Sprite related structs, enums and functions.

§Examples

which are also unit tests:

Sprite Sprite from Tex Sprite from File Sprite draw

Sprite grid Sprite list Sprite arrow left Sprite arrow right Sprite arrow up Sprite arrow down Sprite radio off Sprite radio on Sprite toggle off Sprite toggle on Sprite backspace Sprite close Sprite shift

Structs§

Sprite
A Sprite is an image that’s set up for direct 2D rendering, without using a mesh or model! This is technically a wrapper over a texture, but it also includes atlasing functionality, which can be pretty important to performance! This is used a lot in UI, for image rendering.
_SpriteT
StereoKit internal type.

Enums§

SpriteType
The way the Sprite is stored on the backend! Does it get batched and atlased for draw efficiency, or is it a single image?

Functions§

sprite_addref
sprite_create
sprite_create_file
sprite_draw
sprite_find
sprite_get_aspect
sprite_get_dimensions_normalized
sprite_get_height
sprite_get_id
sprite_get_width
sprite_release
sprite_set_id

Type Aliases§

SpriteT
StereoKit ffi type.