doom3-gpl
Doom 3 GPL source release
|
#include <DeviceContext.h>
Public Types | |
enum | { CURSOR_ARROW, CURSOR_HAND, CURSOR_COUNT } |
enum | { ALIGN_LEFT, ALIGN_CENTER, ALIGN_RIGHT } |
enum | { SCROLLBAR_HBACK, SCROLLBAR_VBACK, SCROLLBAR_THUMB, SCROLLBAR_RIGHT, SCROLLBAR_LEFT, SCROLLBAR_UP, SCROLLBAR_DOWN, SCROLLBAR_COUNT } |
Static Public Attributes | |
static idVec4 | colorPurple |
static idVec4 | colorOrange |
static idVec4 | colorYellow |
static idVec4 | colorGreen |
static idVec4 | colorBlue |
static idVec4 | colorRed |
static idVec4 | colorWhite |
static idVec4 | colorBlack |
static idVec4 | colorNone |
Private Member Functions | |
int | DrawText (float x, float y, float scale, idVec4 color, const char *text, float adjust, int limit, int style, int cursor=-1) |
void | PaintChar (float x, float y, float width, float height, float scale, float s, float t, float s2, float t2, const idMaterial *hShader) |
void | SetFontByScale (float scale) |
void | Clear (void) |
Static Private Attributes | |
static idList< fontInfoEx_t > | fonts |
Definition at line 41 of file DeviceContext.h.
anonymous enum |
Enumerator | |
---|---|
CURSOR_ARROW | |
CURSOR_HAND | |
CURSOR_COUNT |
Definition at line 99 of file DeviceContext.h.
anonymous enum |
Enumerator | |
---|---|
ALIGN_LEFT | |
ALIGN_CENTER | |
ALIGN_RIGHT |
Definition at line 105 of file DeviceContext.h.
anonymous enum |
Enumerator | |
---|---|
SCROLLBAR_HBACK | |
SCROLLBAR_VBACK | |
SCROLLBAR_THUMB | |
SCROLLBAR_RIGHT | |
SCROLLBAR_LEFT | |
SCROLLBAR_UP | |
SCROLLBAR_DOWN | |
SCROLLBAR_COUNT |
Definition at line 111 of file DeviceContext.h.
idDeviceContext::idDeviceContext | ( | ) |
Definition at line 154 of file DeviceContext.cpp.
|
inline |
Definition at line 44 of file DeviceContext.h.
Definition at line 258 of file DeviceContext.cpp.
Definition at line 757 of file DeviceContext.cpp.
Definition at line 147 of file DeviceContext.cpp.
bool idDeviceContext::ClippedCoords | ( | float * | x, |
float * | y, | ||
float * | w, | ||
float * | h, | ||
float * | s1, | ||
float * | t1, | ||
float * | s2, | ||
float * | t2 | ||
) |
Definition at line 186 of file DeviceContext.cpp.
Definition at line 622 of file DeviceContext.cpp.
Definition at line 926 of file DeviceContext.cpp.
void idDeviceContext::DrawFilledRect | ( | float | x, |
float | y, | ||
float | width, | ||
float | height, | ||
const idVec4 & | color | ||
) |
Definition at line 568 of file DeviceContext.cpp.
void idDeviceContext::DrawMaterial | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
const idMaterial * | mat, | ||
const idVec4 & | color, | ||
float | scalex = 1.0 , |
||
float | scaley = 1.0 |
||
) |
Definition at line 360 of file DeviceContext.cpp.
void idDeviceContext::DrawMaterialRect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | size, | ||
const idMaterial * | mat, | ||
const idVec4 & | color | ||
) |
Definition at line 604 of file DeviceContext.cpp.
void idDeviceContext::DrawMaterialRotated | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
const idMaterial * | mat, | ||
const idVec4 & | color, | ||
float | scalex = 1.0 , |
||
float | scaley = 1.0 , |
||
float | angle = 0.0f |
||
) |
Definition at line 407 of file DeviceContext.cpp.
void idDeviceContext::DrawRect | ( | float | x, |
float | y, | ||
float | width, | ||
float | height, | ||
float | size, | ||
const idVec4 & | color | ||
) |
Definition at line 585 of file DeviceContext.cpp.
void idDeviceContext::DrawStretchPic | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | s0, | ||
float | t0, | ||
float | s1, | ||
float | t1, | ||
const idMaterial * | mat | ||
) |
Definition at line 273 of file DeviceContext.cpp.
void idDeviceContext::DrawStretchPicRotated | ( | float | x, |
float | y, | ||
float | w, | ||
float | h, | ||
float | s0, | ||
float | t0, | ||
float | s1, | ||
float | t1, | ||
const idMaterial * | mat, | ||
float | angle = 0.0f |
||
) |
Definition at line 454 of file DeviceContext.cpp.
int idDeviceContext::DrawText | ( | const char * | text, |
float | textScale, | ||
int | textAlign, | ||
idVec4 | color, | ||
idRectangle | rectDraw, | ||
bool | wrap, | ||
int | cursor = -1 , |
||
bool | calcOnly = false , |
||
idList< int > * | breaks = NULL , |
||
int | limit = 0 |
||
) |
Definition at line 937 of file DeviceContext.cpp.
|
private |
Definition at line 678 of file DeviceContext.cpp.
Definition at line 90 of file DeviceContext.h.
void idDeviceContext::EnableLocalization | ( | ) |
Definition at line 51 of file DeviceContext.cpp.
|
inline |
Definition at line 95 of file DeviceContext.h.
const idMaterial * idDeviceContext::GetScrollBarImage | ( | int | index | ) |
Definition at line 848 of file DeviceContext.cpp.
idRegion * idDeviceContext::GetTextRegion | ( | const char * | text, |
float | textScale, | ||
idRectangle | rectDraw, | ||
float | xStart, | ||
float | yStart | ||
) |
Definition at line 856 of file DeviceContext.cpp.
Definition at line 165 of file DeviceContext.cpp.
Definition at line 97 of file DeviceContext.cpp.
|
inline |
Definition at line 48 of file DeviceContext.h.
Definition at line 842 of file DeviceContext.cpp.
Definition at line 836 of file DeviceContext.cpp.
|
private |
Definition at line 648 of file DeviceContext.cpp.
void idDeviceContext::PopClipRect | ( | ) |
Definition at line 172 of file DeviceContext.cpp.
Definition at line 182 of file DeviceContext.cpp.
void idDeviceContext::PushClipRect | ( | idRectangle | r | ) |
Definition at line 178 of file DeviceContext.cpp.
Definition at line 618 of file DeviceContext.cpp.
Definition at line 88 of file DeviceContext.cpp.
Definition at line 662 of file DeviceContext.cpp.
Definition at line 93 of file DeviceContext.h.
Definition at line 747 of file DeviceContext.cpp.
Definition at line 158 of file DeviceContext.cpp.
void idDeviceContext::SetupFonts | ( | ) |
Definition at line 74 of file DeviceContext.cpp.
Definition at line 140 of file DeviceContext.cpp.
Definition at line 798 of file DeviceContext.cpp.
Definition at line 767 of file DeviceContext.cpp.
|
private |
Definition at line 141 of file DeviceContext.h.
|
private |
Definition at line 152 of file DeviceContext.h.
|
static |
Definition at line 129 of file DeviceContext.h.
|
static |
Definition at line 126 of file DeviceContext.h.
|
static |
Definition at line 125 of file DeviceContext.h.
|
static |
Definition at line 130 of file DeviceContext.h.
|
static |
Definition at line 123 of file DeviceContext.h.
|
static |
Definition at line 122 of file DeviceContext.h.
|
static |
Definition at line 127 of file DeviceContext.h.
|
static |
Definition at line 128 of file DeviceContext.h.
|
static |
Definition at line 124 of file DeviceContext.h.
|
private |
Definition at line 150 of file DeviceContext.h.
|
private |
Definition at line 138 of file DeviceContext.h.
|
private |
Definition at line 157 of file DeviceContext.h.
|
private |
Definition at line 155 of file DeviceContext.h.
|
private |
Definition at line 143 of file DeviceContext.h.
|
staticprivate |
Definition at line 154 of file DeviceContext.h.
|
private |
Definition at line 163 of file DeviceContext.h.
|
private |
Definition at line 161 of file DeviceContext.h.
|
private |
Definition at line 165 of file DeviceContext.h.
|
private |
Definition at line 162 of file DeviceContext.h.
|
private |
Definition at line 159 of file DeviceContext.h.
|
private |
Definition at line 139 of file DeviceContext.h.
|
private |
Definition at line 142 of file DeviceContext.h.
|
private |
Definition at line 147 of file DeviceContext.h.
|
private |
Definition at line 148 of file DeviceContext.h.
|
private |
Definition at line 140 of file DeviceContext.h.
|
private |
Definition at line 144 of file DeviceContext.h.
|
private |
Definition at line 145 of file DeviceContext.h.