28 #include "../cl_renderer.h"
33 void UI_DrawNormImage(
bool flip,
float x,
float y,
float w,
float h,
float sh,
float th,
float sl,
float tl,
const struct image_s* image);
40 int UI_DrawString(
const char* fontID,
align_t align,
int x,
int y,
int absX,
int maxWidth,
const int lineHeight,
const char* c,
int box_height = 0,
int scroll_pos = 0,
int* cur_line =
nullptr,
bool increaseLine =
false,
longlines_t method =
LONGLINES_WRAP);
42 void UI_DrawRect(
int x,
int y,
int w,
int h,
const vec4_t color,
float lineWidth,
int pattern);
int UI_DrawString(const char *fontID, align_t align, int x, int y, int absX, int maxWidth, const int lineHeight, const char *c, int box_height=0, int scroll_pos=0, int *cur_line=nullptr, bool increaseLine=false, longlines_t method=LONGLINES_WRAP)
void UI_EnableFlashing(const vec4_t flashingColor, float speed=1)
Enables flashing effect for UI nodes.
void UI_DrawRect(int x, int y, int w, int h, const vec4_t color, float lineWidth, int pattern)
void UI_DisableFlashing(void)
Disables flashing effect for UI nodes.
static const vec3_t scale
int UI_DrawStringInBox(const char *fontID, align_t align, int x, int y, int width, int height, const char *text, longlines_t method=LONGLINES_PRETTYCHOP)
draw a line into a bounding box
void UI_DrawNormImage(bool flip, float x, float y, float w, float h, float sh, float th, float sl, float tl, const struct image_s *image)
const image_t * UI_DrawNormImageByName(bool flip, float x, float y, float w, float h, float sh, float th, float sl, float tl, const char *name)
Draws an image or parts of it.
align_t
We need this here for checking the boundaries from script values.
void UI_Transform(const vec3_t transform, const vec3_t rotate, const vec3_t scale)
Pushes a new matrix, normalize to current resolution and move, rotate and scale the matrix to the giv...
const struct image_s * UI_LoadImage(const char *name)
Searches for an image in the image array.
const struct image_s * UI_LoadWrappedImage(const char *name)
Searches for a wrapped image in the image array.
void UI_PopClipRect(void)
void UI_PushClipRect(int x, int y, int width, int height)
QGL_EXTERN GLuint GLsizei GLsizei GLint GLenum GLchar * name
void UI_DrawBorderedPanel(const vec2_t pos, const vec2_t size, const char *texture, int texX, int texY, int texW, int texH, int border)
draw a panel from a texture as we can see on the image
void UI_DrawFill(int x, int y, int w, int h, const vec4_t color)
Fills a box of pixels with a single color.
void UI_DrawPanel(const vec2_t pos, const vec2_t size, const char *texture, int texX, int texY, const int panelDef[7])
draw a panel from a texture as we can see on the image