29 #ifndef __DEVICECONTEXT_H__
30 #define __DEVICECONTEXT_H__
84 bool ClippedCoords(
float *
x,
float *
y,
float *
w,
float *h,
float *s1,
float *t1,
float *s2,
float *t2);
void SetTransformInfo(const idVec3 &origin, const idMat3 &mat)
static idVec4 colorYellow
void DrawEditCursor(float x, float y, float scale)
GLenum GLenum GLenum GLenum GLenum scale
void DrawMaterialRect(float x, float y, float w, float h, float size, const idMaterial *mat, const idVec4 &color)
const idMaterial * whiteImage
static idVec4 colorOrange
fontInfoEx_t * activeFont
void PushClipRect(float x, float y, float w, float h)
bool ClippedCoords(float *x, float *y, float *w, float *h)
void SetFontByScale(float scale)
static idVec4 colorPurple
int FindFont(const char *name)
void 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)
int MaxCharWidth(float scale)
const idMaterial * scrollBarImages[SCROLLBAR_COUNT]
int 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)
GLubyte GLubyte GLubyte GLubyte w
idRegion * GetTextRegion(const char *text, float textScale, idRectangle rectDraw, float xStart, float yStart)
int TextWidth(const char *text, float scale, int limit)
void DrawFilledRect(float x, float y, float width, float height, const idVec4 &color)
void DrawStretchPic(float x, float y, float w, float h, float s0, float t0, float s1, float t1, const idMaterial *mat)
void GetTransformInfo(idVec3 &origin, idMat3 &mat)
void EnableClipping(bool b)
int MaxCharHeight(float scale)
void SetOverStrike(bool b)
GLenum GLsizei GLsizei height
void DrawCursor(float *x, float *y, float size)
int CharWidth(const char c, float scale)
idList< idRectangle > clipRects
GLdouble GLdouble GLdouble r
void AdjustCoords(float *x, float *y, float *w, float *h)
void PaintChar(float x, float y, float width, float height, float scale, float s, float t, float s2, float t2, const idMaterial *hShader)
void EnableLocalization()
const idMaterial * cursorImages[CURSOR_COUNT]
int TextHeight(const char *text, float scale, int limit)
static idList< fontInfoEx_t > fonts
void SetSize(float width, float height)
void DrawStretchPicRotated(float x, float y, float w, float h, float s0, float t0, float s1, float t1, const idMaterial *mat, float angle=0.0f)
void DrawMaterial(float x, float y, float w, float h, const idMaterial *mat, const idVec4 &color, float scalex=1.0, float scaley=1.0)
const idMaterial * GetScrollBarImage(int index)
void DrawRect(float x, float y, float width, float height, float size, const idVec4 &color)