Canvas

Undocumented in source.

Constructors

this
this(tida.window.Window window, bool isAlloc)
Undocumented in source.

Members

Functions

allocatePlace
void allocatePlace(uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.
blendMode
BlendMode blendMode()
Undocumented in source. Be warned that the author may not have intended to support it.
blendMode
void blendMode(BlendMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.
blendOperation
BlendFactor[2] blendOperation()
Undocumented in source. Be warned that the author may not have intended to support it.
blendOperation
void blendOperation(BlendFactor sfactor, BlendFactor dfactor)
Undocumented in source. Be warned that the author may not have intended to support it.
clearPlane
void clearPlane(Color!ubyte color)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTo
void drawTo()
Undocumented in source. Be warned that the author may not have intended to support it.
move
void move(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
recreateBitmap
void recreateBitmap()
Undocumented in source. Be warned that the author may not have intended to support it.
viewport
void viewport(uint width, uint height)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin PointToImpl!(PixelFormat.BGRA, 4)
Undocumented in source.

Properties

cameraPosition
int[2] cameraPosition [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
data
ubyte[] data [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
portSize
uint[2] portSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
uint[2] size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From ICanvas

allocatePlace
void allocatePlace(uint width, uint height)

Allocate memory for the canvas at the specified size.

clearPlane
void clearPlane(Color!ubyte color)

Cleared the canvas with one color.

drawTo
void drawTo()

Draws a buffer to a storage object.

blendMode
BlendMode blendMode [@property setter]
BlendMode blendMode [@property getter]

Blending mode (blend or not).

blendOperation
void blendOperation(BlendFactor sfactor, BlendFactor dfactor)

Sets the color mixing factor (which formula to mix colors with).

blendOperation
BlendFactor[2] blendOperation()

Mixing factor (sfactor, dfactor).

pointTo
void pointTo(Vecf position, Color!ubyte color)

Draw a point on the canvas. Draw only a point, the rest of the shapes are rendered.

viewport
void viewport(uint w, uint h)

Set port of visibility.

move
void move(int x, int y)

Move the visibility port to the specified coordinates.

data
ubyte[] data [@property getter]

Canvas data.

size
uint[2] size [@property getter]

Canvas size.

portSize
uint[2] portSize [@property getter]

The real size of the world, where from the world it will be drawn to the size of the canvas.

cameraPosition
int[2] cameraPosition [@property getter]

Camera position (offset of all drawing points).

Meta