Creates a surface
surface_create(w, h)
int
Returns: RenderTarget2D
RenderTarget2D
This function creates a surface and will return the index of the surface which should be stored in a variable for future function calls.
RenderTarget2D surf = surface_create(1024, 1024);
This code will create a new surface that is 1024 pixels wide and 1024 pixels high and assign the index variable surf.
surf
Back to surfaces
There was an error while loading. Please reload this page.