#[repr(C)]pub struct SsTextureRef {
pub key: u32,
pub embedded: bool,
pub path: *const c_char,
}Expand description
One atlas a pack asks for, flattened for the ABI. What
ss_player_texture_at fills in.
Fields§
§key: u32The key ss_scene_add_texture / ss_scene_add_texture_png expects for
this image.
An identity for the image, not for the cellmap that names it: some
tools name the atlas spritemap1.png in every project they export, so two packs
name their atlas alike, and a key made from the cellmap’s hash alone would
let the second draw the first one’s atlas. Two packs that really do share a
file still share this, and so still share one upload.
embedded: booltrue when the image rides inside the .ssab (embedded mode): the pack
supplies it on the next ss_scene_update and the host loads nothing.
path: *const c_charThe image path the exporter wrote, relative to the .ssab’s own
directory — join it with the directory the file was read from.
Owned by the scene and valid until the next ss_player_texture_at on it;
copy it if you need to keep it. Never null.