Graphics

Undocumented in source.

Constructors

this
this(Window w, SDL_RendererFlags flags, int index)

Creates a new wrapped SDL_Renderer

this
this(Surface s)

Creates a software SDL renderer

Destructor

~this
~this()
Undocumented in source.

Members

Functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
createTextureFrom
SDL_Texture* createTextureFrom(Surface s)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLine
void drawLine(Vector2 pos1, Vector2 pos2)
Undocumented in source. Be warned that the author may not have intended to support it.
drawLines
void drawLines(Vector2[2][] lines)
Undocumented in source. Be warned that the author may not have intended to support it.
drawPoint
void drawPoint(Vector2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
drawPoints
void drawPoints(Vector2[] points)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRect
void drawRect(Rect rect)
Undocumented in source. Be warned that the author may not have intended to support it.
drawRects
void drawRects(Rect[] rects)
Undocumented in source. Be warned that the author may not have intended to support it.
drawTexture
void drawTexture(SDL_Texture* t, Rect src, Rect dest)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRect
void fillRect(Rect rect)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRects
void fillRects(Rect[] rects)
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

clipRect
clipRect [@property getter]
clipRect
Rect clipRect [@property setter]
color
color [@property getter]
color
Color color [@property setter]
renderer
renderer [@property getter]

The renderer

Meta