natiny.render.surface
natiny.render.surface(surf, x, y [, w [, h]])
Draws the surface contents as a textured quad using the current draw color.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
surf |
number |
Surface handle from natiny.surface.create |
|
x |
number |
X position | |
y |
number |
Y position | |
w |
number |
Surface width | Draw width |
h |
number |
Surface height | Draw height |
Example
natiny.render.surface(rt, 100, 100)
Notes
- The current draw color tints the surface.