DVUI

textureCreate

Create a dvui.Texture from premultiplied alpha pixels in RGBA. The returned pointer is what will later be passed to drawClippedTriangles.

Parameters

#
self:Backend
Backend
pixels:[*]const u8
[*]const u8
options:dvui.Texture.CreateOptions
dvui.Texture.CreateOptions

Source

Implementation

#
pub fn textureCreate(self: Backend, pixels: [*]const u8, options: dvui.Texture.CreateOptions) TextureError!dvui.Texture {
    return self.renderer().textureCreate(pixels, options);
}