Makes an empty texture that can be drawn into: make it current with set_render_target, then draw as usual.
- width: in pixels.
- height: in pixels.
- format: how a pixel is stored, for instance
.RGBA8. - flags: extra
Texture_Flags, such as.sRGB..Render_Targetis always added.
texture_create_render_target :: (
width: s32,
height: s32,
format: Texture_Format,
flags: Texture_Flags = 0
) -> Texture
Makes an empty texture that can be drawn into: make it current with set_render_target, then draw as usual.
Parameters
- width: s32
- in pixels.
- height: s32
- in pixels.
- format: Texture_Format
- how a pixel is stored, for instance
.RGBA8. - flags: Texture_Flags
- extra
Texture_Flags, such as.sRGB..Render_Targetis always added.