00001
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef CLIENT_UI_UI_RENDER_H
00026 #define CLIENT_UI_UI_RENDER_H
00027
00028 #include "ui_nodes.h"
00029 #include "../cl_renderer.h"
00030
00031 const image_t *UI_LoadImage(const char *name);
00032
00033 void UI_DrawNormImage(float x, float y, float w, float h, float sh, float th, float sl, float tl, const image_t *image);
00034 const image_t *UI_DrawNormImageByName(float x, float y, float w, float h, float sh, float th, float sl, float tl, const char *name);
00035
00036 void UI_DrawPanel(const vec2_t pos, const vec2_t size, const char *texture, int texX, int texY, const int panelDef[6]);
00037 void UI_DrawFill(int x, int y, int w, int h, const vec4_t color);
00038 int UI_DrawStringInBox(const char *fontID, align_t align, int x, int y, int width, int height, const char *text, longlines_t method);
00039 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, int scroll_pos, int *cur_line, qboolean increaseLine, longlines_t method);
00040 void UI_Transform(const vec3_t transform, const vec3_t rotate, const vec3_t scale);
00041
00042 #endif