|
Classes |
| class | Config |
| | Configuration loader from XML (Singleton). More...
|
| class | ID |
| | A unique ID that can be globally referenced. One day this may just be GUID. More...
|
| class | Context |
| | A container class for objects, fonts, and the current state of the UI system. More...
|
Functions |
|
bool | boxHit (int x, int y, int ax, int ay, int aw, int ah) |
| | A collision check for clicking in boxes using arbitrary coordinates. Width and height must be non-negative.
|
|
bool | boxHit (int x, int y, const Rect &r) |
| | A collision check for clicking in boxes using a Rect class. Width and height must be non-negative.
|
|
bool | doButton (Context &con, ID, const std::string &message, bool wasHit) |
| | Handle the button based on context, message and collision status. If it returns TRUE, the button has been clicked by the user and we should handle whatever it is that the button does.
|
|
bool | doSlider (Context &con, ID, const std::string &message, bool wasHit, Rect &r, float local_x, float &value) |
| | Handle input to the slider. True means that the value was changed.
|
|
void | drawButton (Context &con, ID, const std::string &label, const Rect &r) |
| | Draw the button onscreen based on the context, label, and rectangle.
|
|
void | drawSlider (Context &con, ID, float value, const Rect &r) |
| | Draw a slider based on the current value.
|
|
void | renderBox (float x1, float y1, float x2, float y2) |
| | Render a 2D box using GL_QUADS from (x1,y1) to (x2,y2).
|
|
void | renderBox (const Rect &b) |
| | Render a 2D box using GL_QUADS using the internal Rect type.
|
|
void | drawButton (Context &con, ID i, const std::string &label, const Rect &r) |
| | Draw the button onscreen based on the context, label, and rectangle.
|
|
void | drawSlider (Context &con, ID i, float value, const Rect &r) |
| | Draw a slider based on the current value.
|
|
void | renderLine (float x1, float y1, float x2, float y2, float thickness=1.0f) |
| | Render a GL_LINE from (x1, y1) to (x2,y2) with a variable thickness in pixels.
|