Skip to content

MTY_WindowSetUITexture

chrisd1100 edited this page Apr 9, 2023 · 2 revisions

Set an RGBA texture image for use in MTY_DrawData.

bool MTY_WindowSetUITexture(
    MTY_App *    app,
    MTY_Window   window,
    uint32_t     id,
    const void * rgba,
    uint32_t     width,
    uint32_t     height
);

Parameters

app (MTY_App *)

The MTY_App.

window (MTY_Window)

An MTY_Window.

id (uint32_t)

The desired id for the texture.

rgba (const void *)

RGBA 8-bits per channel image.

width (uint32_t)

Width of rgba.

height (uint32_t)

Height of rgba.

Return value

bool

Returns true on success, false on failure. Call MTY_GetLog for details.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: App

Clone this wiki locally