Texture
2D images in Astro are represented by Texture. They are quite simple but very flexible when it comes to rendering them.
new
construct new(filename)
Parameters
filename -> StringFilename of the texture to load.
Loads an image as a texture.
width
Read Only: width
Variable Type: Num - Width of the texture in pixels.
height
Read Only: height
Variable Type: Num - Height of the texture in pixels.
free
free()
Forces the texture to be freed without waiting for the garbage collector.