Skip to content

surface_set_target

Vašek edited this page Jan 18, 2019 · 3 revisions

surface_set_target

Sets the drawing target to a specific surface

Syntax:

surface_set_target(surface_id)
Argument Description
RenderTarget2D surface_id The ID of the surface

Returns: void

Description:

This function set all further drawing to the target surface. When u want to quit drawing to the current surface, use function surface_reset_target.

Example:

surface_set_target(surf);

This code will set all further drawing to the surface called surf.

Back to surfaces

Clone this wiki locally