DVUI

textureDestroy

Destroy texture made with textureCreate. After this call, this texture pointer will not be used by dvui.

Parameters

#
self:Backend
Backend
texture:dvui.Texture
dvui.Texture

Source

Implementation

#
pub fn textureDestroy(self: Backend, texture: dvui.Texture) void {
    // std.debug.print("destroy ptr {} w: {}, h:{}\n", .{ @intFromPtr(texture.ptr), texture.width, texture.height });
    return self.renderer().textureDestroy(texture);
}