ProceduralTextureSource

Base class for TextureSource implementations where pixel data is calculated on request.

Members

Functions

getPixels
TextureCanvas getPixels()

Implementation of getPixels using drawTo and a cached copy.

getSize
void getSize(int width, int height)

Query the size of the procedural texture

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