surface_get_texture(id)

id = name of the variable which holds the ID of the surface (see surface_create).

 

Example:

surface_texture=surface_get_texture(surface);

 

This function returns the texture corresponding to the surface with the given ID. You can use this function to draw objects with textures, with the image of this surface.

 

esh_corp11 - Revision #1