- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 19
surface_create
        Vašek edited this page Jan 16, 2019 
        ·
        3 revisions
      
    Creates a surface
surface_create(w, h)| Argument | Description | 
|---|---|
| intx | The width of the surface | 
| intn | The height of the surface | 
Returns: 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.
Back to surfaces