4 #define draw_beginBoldFont() drawfont = FONT_USER + 2 5 #define draw_endBoldFont() drawfont = FONT_USER + 1 21 #define drawpic(position, pic, size, rgb, alpha, flag) \ 22 drawpic_builtin(HUD_Shift(position), pic, HUD_Scale(size), rgb, alpha, flag) 24 #define drawcharacter(position, character, scale, rgb, alpha, flag) \ 25 drawcharacter_builtin(HUD_Shift(position), text, scale, rgb, alpha, flag) 27 #define drawstring(position, text, scale, rgb, alpha, flag) \ 28 drawstring_builtin(HUD_Shift(position), text, scale, rgb, alpha, flag) 30 #define drawcolorcodedstring(position, text, scale, alpha, flag) \ 31 drawcolorcodedstring_builtin(HUD_Shift(position), text, scale, alpha, flag) 33 #define drawcolorcodedstring2(position, text, scale, rgb, alpha, flag) \ 34 drawcolorcodedstring2_builtin(HUD_Shift(position), text, scale, rgb, alpha, flag) 36 #define drawfill(position, size, rgb, alpha, flag) \ 37 drawfill_builtin(HUD_Shift(position), HUD_Scale(size), rgb, alpha, flag) 39 #define drawsetcliparea(xposition, yposition, w, h) \ 40 drawsetcliparea_builtin(HUD_ShiftX(xposition), HUD_ShiftY(yposition), HUD_ScaleX(w), HUD_ScaleY(h)) 57 #define drawpic_aspect(pos,pic,mySize,color,theAlpha,drawflag)\ 59 _drawpic_imgsize = draw_getimagesize(pic);\ 60 if(_drawpic_imgsize != '0 0 0') {\ 61 _drawpic_imgaspect = _drawpic_imgsize.x/_drawpic_imgsize.y;\ 62 _drawpic_sz = mySize;\ 63 if(_drawpic_sz.x/_drawpic_sz.y > _drawpic_imgaspect) {\ 64 _drawpic_oldsz = _drawpic_sz.x;\ 65 _drawpic_sz.x = _drawpic_sz.y * _drawpic_imgaspect;\ 67 drawpic(pos + eX * 0.5 * (_drawpic_oldsz - _drawpic_sz.x), pic, _drawpic_sz, color, theAlpha, drawflag);\ 69 _drawpic_oldsz = _drawpic_sz.y;\ 70 _drawpic_sz.y = _drawpic_sz.x / _drawpic_imgaspect;\ 72 drawpic(pos + eY * 0.5 * (_drawpic_oldsz - _drawpic_sz.y), pic, _drawpic_sz, color, theAlpha, drawflag);\ 78 #define drawpic_aspect_skin(pos,pic,sz,color,theAlpha,drawflag)\ 80 _drawpic_picpath = strcat(hud_skin_path, "/", pic);\ 81 if(precache_pic(_drawpic_picpath) == "") {\ 82 _drawpic_picpath = strcat("gfx/hud/default/", pic);\ 84 drawpic_aspect(pos, _drawpic_picpath, sz, color, theAlpha, drawflag);\ 85 _drawpic_picpath = string_null;\ 89 #define drawpic_skin(pos,pic,sz,color,theAlpha,drawflag)\ 91 _drawpic_picpath = strcat(hud_skin_path, "/", pic);\ 92 if(precache_pic(_drawpic_picpath) == "") {\ 93 _drawpic_picpath = strcat("gfx/hud/default/", pic);\ 95 drawpic(pos, _drawpic_picpath, sz, color, theAlpha, drawflag);\ 96 _drawpic_picpath = string_null;\
float PolyDrawModelSurface(entity e, float i_s)
void drawstring_aspect_expanding(vector pos, string text, vector sz, vector color, float theAlpha, float drawflag, float fadelerp)
vector expandingbox_resize_centered_box_offset(float sz, vector boxsize, float boxxsizefactor)
void drawstring_aspect(vector pos, string text, vector sz, vector color, float theAlpha, float drawflag)
void drawpic_aspect_skin_expanding_two(vector position, string pic, vector theScale, vector rgb, float theAlpha, float flag, float fadelerp)
void drawcolorcodedstring_expanding(vector position, string text, vector theScale, float theAlpha, float flag, float fadelerp)
void drawstring_expanding(vector position, string text, vector theScale, vector rgb, float theAlpha, float flag, float fadelerp)
void DrawCircleClippedPic(vector centre, float radi, string pic, float f, vector rgb, float a, float drawflag)
void drawcolorcodedstring_aspect(vector pos, string text, vector sz, float theAlpha, float drawflag)
void drawpic_aspect_skin_expanding(vector position, string pic, vector theScale, vector rgb, float theAlpha, float flag, float fadelerp)
void drawcolorcodedstring_aspect_expanding(vector pos, string text, vector sz, float theAlpha, float drawflag, float fadelerp)
float expandingbox_sizefactor_from_fadelerp(float fadelerp)
vector(float skel, float bonenum) _skel_get_boneabs_hidden
void PolyDrawModel(entity e)
void drawpic_tiled(vector pos, string pic, vector sz, vector area, vector color, float theAlpha, float drawflag)
void drawborderlines(float thickness, vector pos, vector dim, vector color, float theAlpha, float drawflag)
float stringwidth(string text, float handleColors, vector sz)