ImageTextureSource

Implementation of TextureSource using an ae.utils.graphics.image.Image.

Members

Functions

drawTo
void drawTo(TextureCanvas dest)
Undocumented in source. Be warned that the author may not have intended to support it.
getPixels
TextureCanvas getPixels()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

image
Image!(Renderer.COLOR) image;

The image.

Inherited Members

From TextureSource

renderData
TextureRenderData[enumLength!Renderers] renderData;

Renderer-specific texture data.

textureVersion
uint textureVersion;

Source version number of the texture.

TextureCanvas
alias TextureCanvas = ImageRef!(Renderer.COLOR)

Common type used by drawTo / getPixels

drawTo
void drawTo(TextureCanvas dest)

Request the contents of this TextureSource. Used when the target pixel memory is already allocated

getPixels
TextureCanvas getPixels()

Request the contents of this TextureSource. Used when a pointer is needed to existing pixel memory

~this
~this()
Undocumented in source.

Meta