Skip to Content

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.

TypeFromTaken byLifetime
font_trender.load_fontrender.text, render.calc_text_size (font argument)Until the script unloads; at most 16 per script.
texture_trender.setup_texture, render.setup_texture_rgba, render.setup_texture_from_memoryrender.texture, ctx:texture on an ESP or style ctxUntil the script unloads. Drawable from the next frame.
hud_texture_tA style's data (item.avatar of spectator_list, warning.icon of proximity_warning)ctx:texture in the same style callThat 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.