Graphics

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

beginFrame
void beginFrame(RGBA clearColor, Canvas** canvas, ImageRef!RGBA* framebuffer)

Start drawing, return a Canvas initialized to the drawing area.

endFrame
void endFrame()

Mark end of drawing.

fillWithClearColor
void fillWithClearColor(RGBA clearColor)
Undocumented in source. Be warned that the author may not have intended to support it.
getFrameSize
void getFrameSize(int* width, int* height)
Undocumented in source. Be warned that the author may not have intended to support it.
getRenderer
IRenderer getRenderer()
Undocumented in source. Be warned that the author may not have intended to support it.
getTicks
int getTicks()
Undocumented in source. Be warned that the author may not have intended to support it.
getWindowID
uint getWindowID()
Undocumented in source. Be warned that the author may not have intended to support it.
nextEvent
bool nextEvent(SDL_Event* event)
Undocumented in source. Be warned that the author may not have intended to support it.
setTitle
void setTitle(const(char)[] title)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From IGraphics

nextEvent
bool nextEvent(SDL_Event* event)

Get the next event.

getRenderer
IRenderer getRenderer()

Mark beginning of frame.

getTicks
int getTicks()
Undocumented in source.
getWindowID
uint getWindowID()
Undocumented in source.
setTitle
void setTitle(const(char)[] title)
Undocumented in source.

From IRenderer

beginFrame
void beginFrame(RGBA clearColor, Canvas** canvas, ImageRef!RGBA* framebuffer)

Start drawing, return a Canvas and a framebuffer.

endFrame
void endFrame()

Mark end of drawing.

getFrameSize
void getFrameSize(int* width, int* height)

Get width and height of the frame returned by the last call to beginFrame.

Meta