natiny_render_surface
void natiny_render_surface(
NatinySurface surf,
float x, float y, float w, float h
);
Draws the surface contents as a textured quad using the current draw color.
Parameters
| Name | Type | Description |
|---|---|---|
surf |
NatinySurface |
Surface handle from natiny_surface_create |
x |
float |
X position |
y |
float |
Y position |
w |
float |
Draw width |
h |
float |
Draw height |
Example
natiny_render_surface(rt, 100.0f, 100.0f, 512.0f, 512.0f);
Notes
- The current draw color tints the surface. Native callers provide both draw dimensions explicitly.