font_t, texture_t and hud_texture_t
Opaque font and texture handles: where each one comes from, which functions take it and how long it lives.
Opaque handles with no fields or methods.
| Type | From | Taken by | Lifetime |
|---|---|---|---|
font_t | render.load_font | render.text, render.calc_text_size (font argument) | Until the script unloads; at most 16 per script. |
texture_t | render.setup_texture, render.setup_texture_rgba, render.setup_texture_from_memory | render.texture, ctx:texture on an ESP or style ctx | Until the script unloads. Drawable from the next frame. |
hud_texture_t | A style's data (item.avatar of spectator_list, warning.icon of proximity_warning) | ctx:texture in the same style call | That call only: a kept one raises a host texture draws only in the call that handed it. |
ctx:texture given anything else raises expected texture_t.
