DRAWING FUNCTIONS
ReleaseTexture
Frees a texture handle returned by LoadTexture.
Syntax
local ok = ONYX.ReleaseTexture(texId)Parameters
texId(number) — Handle returned by a load call.
Return(s)
ok (boolean) — true when released, false when the handle was not found.
Behavior
- Releases the underlying shader resource view.
- The handle becomes invalid and further draws with it are ignored.
Example(s)
local texId = ONYX.LoadTexture("logo.png")
local ok = ONYX.ReleaseTexture(texId)