Raster

Handles multiple layers onto one framebuffer.

Constructors

this
this(ushort x, ushort y, OutputScreen oW, size_t paletteLength)

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

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addLayer
void addLayer(Layer l, int i)

Adds a layer at the given priority.

addRefreshListener
void addRefreshListener(RefreshListener r)

Adds a RefreshListener to its list.

editColor
void editColor(ushort c, Color val)

Edits the given color index.

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)

Removes a layer at the given priority.

replaceLayer
void replaceLayer(Layer l, int i)

Replaces the layer at the given number.

resetAvgfps
void resetAvgfps()

Resets the avgFPS to zero.

setupPalette
void setupPalette(int i)

Sets the number of colors.

Properties

avgfps
real avgfps [@property getter]

Returns the current average FPS count.

fps
real fps [@property getter]

Returns the current FPS count.

Variables

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

Color format is ARGB, with each index having their own transparency.

Inherited Members

From IRaster

getOutput
SDL_Texture* getOutput()
Undocumented in source.

Meta