SphereFS path to an image file.
Construct a new surface of a given size and initial contents.
The width of the new texture, in pixels.
The height of the new texture, in pixels.
Either a Color
to fill the texture with or a buffer of RGBA pixels.
Blending operation to use when rendering to this surface.
The SphereFS path of the image file used to create the texture, or null
for non-file-based
textures.
Height of the surface, in pixels.
Transform to use when rendering to this surface. Must include a projection.
Width of the surface, in pixels.
A surface representing the backbuffer. The contents of Surface.Screen
are presented to the
screen at the end of every frame's Render phase.
Get the raw RGBA pixel data from this texture. May be slow!
Upload new RGBA pixel data to this texture.
A buffer with the new RGBA pixel values.
Create a new surface initialized from the contents of an image file. The image is loaded in the background; the promise resolves once the surface is ready for use.
A promise for the new surface.
Generated using TypeDoc
Construct a new surface from the contents of an image file. Not supported in Oozaru; prefer
Surface.fromFile
in new code.