Simp module

texture_create_render_target

procedure · 1 overloadSource

Makes an empty texture that can be drawn into: make it current with set_render_target, then draw as usual.

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_Target is always added.

Returns

See also