HOG2
|
#include <TextBox.h>
Public Member Functions | |
TextBox (char *text, int charLine, point3d topLeft, point3d bottomRight, double duration=4, bool deform=true, bool scrolling=false) | |
~TextBox () | |
void | stepTime (double amount) |
void | draw () |
point3d | getLocation () |
void | destroy () |
void | setColor (rgbColor _myColor) |
Private Member Functions | |
void | drawLine (point3d where, int startx, int starty, int offsetx, int offsety, double scale) |
void | drawChar (char c, point3d where, double height) |
uint32_t | getBitmap (char c) |
Private Attributes | |
point3d | tl |
point3d | br |
rgbColor | myColor |
char * | text |
int | charLine |
bool | deform |
bool | scrolling |
double | elapsedTime |
double | duration |
GLuint | dList |
TextBox::~TextBox | ( | ) |
Definition at line 29 of file TextBox.cpp.
void TextBox::destroy | ( | ) |
Definition at line 36 of file TextBox.cpp.
References duration, and elapsedTime.
void TextBox::draw | ( | ) |
Definition at line 46 of file TextBox.cpp.
References rgbColor::b, br, charLine, deform, dList, drawChar(), elapsedTime, rgbColor::g, myColor, point3d, rgbColor::r, scrolling, text, and tl.
Referenced by drawGL().
|
private |
Definition at line 158 of file TextBox.cpp.
References drawLine(), getBitmap(), and height.
Referenced by draw().
|
private |
Definition at line 374 of file TextBox.cpp.
Referenced by drawChar().
|
private |
Definition at line 202 of file TextBox.cpp.
Referenced by drawChar().
point3d TextBox::getLocation | ( | ) |
Definition at line 143 of file TextBox.cpp.
References tl.
|
inline |
Definition at line 27 of file TextBox.h.
References myColor.
Referenced by appendTextToBuffer(), setTextBufferVisibility(), and submitTextToBuffer().
void TextBox::stepTime | ( | double | amount | ) |
|
private |
|
private |
|
private |
|
private |
Definition at line 39 of file TextBox.h.
Referenced by draw(), TextBox(), and ~TextBox().
|
private |
|
private |
|
private |
Definition at line 33 of file TextBox.h.
Referenced by draw(), and setColor().
|
private |
|
private |
Definition at line 34 of file TextBox.h.
Referenced by draw(), TextBox(), and ~TextBox().
|
private |
Definition at line 32 of file TextBox.h.
Referenced by draw(), getLocation(), and TextBox().