Public Member Functions | |
Graphics () | |
~Graphics () | |
void | translate (int x, int y) |
void | pushMatrix () |
void | popMatrix () |
void | setDepth (float newDepth) |
float | getDepth () |
void | setPaint (const util::Paint *paint) |
void | drawRect (int x, int y, int width, int height) |
void | fillRect (int x, int y, int width, int height) |
void | drawImage (int textureId, int x, int y, int width, int height) |
void | drawLine (int x1, int y1, int x2, int y2) |
void | setFont (Font *f) |
void | drawString (int x, int y, std::string str) |
void | fillCircle (int x, int y, int radius) |
void | setLineWidth (int width) |
bool | pushDepth (float d) |
void | popDepth (float d) |
void | enableScissor (int x, int y, int width, int height) |
void | disableScissor () |
void | enableBlending () |
void | disableBlending () |
void | paintUniqueColoredRect (int index, int x, int y, int width, int height) |
void | rotate (float degrees) |
bool | pushTransparency (float f) |
void | popTransparency () |
void | setTransparency (float f) |
float | getTransparency () |
|
Creates a Graphics instance. For normal use you'll only want one of these. |
|
Destroys the Graphics instance, and returns all memory used by it. |
|
Translate the orientation. |
|
Save translation matrix. |
|
Restore translation matrix. |
|
Sets the rendering depth.
|
|
Returns the currently used depth. |
|
Sets the current color(paint), this will be used by any further call to the Graphics context, until another setPaint() call is made. |
|
Draws a rectangle to the screen at the given location, with specified width and height. |
|
Draws a filled rectangle to the screen at the given location, with specified width and height. |
|
draws an image |
|
Draws a line from one point to another. |
|
Draws a string in the current font. |
|
Fills a circle at the given location with given radius. |
|
Set the linewidth.
|
|
Store the current depth. |
|
Restore the previous depth. |
|
Enable scissor testing, which effectively 'masks' out a rendering area. This is automatically calculated from GUI coordinates ((0,0) in top-left corner) to OpenGL coordinates ((0,0) in bottom-left corner).
|
|
Disables the scissor area testing. |
|
Enables alpha blending. |
|
Disables alpha blending. |
|
Paint a unique colored rectangle to the screen. This is used by the SelectionManager, and should not be used for normal painting. |
|
Rotate the coordinate system over the x axis. |