Raster

Handles multiple layers onto one framebuffer.

Constructors

this
this(ushort x, ushort y, OutputScreen oW, int[] threads)

Default constructor. x and y : represent the resolution of the raster.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addColor
void addColor(Color val)

Writes a color at the last position

addLayer
void addLayer(Layer l, int i)

Adds a layer at the given priority.

addRefreshListener
void addRefreshListener(RefreshListener r)
Undocumented in source. Be warned that the author may not have intended to support it.
editColor
void editColor(ushort c, Color val)
Undocumented in source. Be warned that the author may not have intended to support it.
getOutput
SDL_Texture* getOutput()

Returns the workpad.

isRefreshing
bool isRefreshing()

Returns if the raster is refreshing.

refresh
void refresh()

Refreshes the whole framebuffer.

removeLayer
void removeLayer(int n)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceLayer
void replaceLayer(Layer l, int i)

Replaces the layer at the given number.

resetAvgfps
void resetAvgfps()
Undocumented in source. Be warned that the author may not have intended to support it.
setupPalette
void setupPalette(int i)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

avgfps
real avgfps [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
fps
real fps [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

fbData
void*[] fbData;
Undocumented in source.
fbPitch
int[] fbPitch;
Undocumented in source.
frameBuffer
SDL_Texture*[] frameBuffer;
Undocumented in source.
palette
Color[] palette;

FORMAT IS ARGB. Master palette, layers or bitmaps can define their own palettes if needed.

Inherited Members

From IRaster

getOutput
SDL_Texture* getOutput()
Undocumented in source.

Meta