-
Notifications
You must be signed in to change notification settings - Fork 56
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
);
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
.
bool
Returns true
on success, false
on failure. Call MTY_GetLog
for details.