140#define PTI_FIRSTCOMPRESSED PTI_E5BGR9
172#define PTI_ASTC_FIRST PTI_ASTC_4X4_LDR
251#define PTI_ASTC_LAST PTI_ASTC_6X6X6_HDR
253#define PTI_ASTC_LAST PTI_ASTC_12X12_HDR
300#define PTI_EMULATED TF_INVALID:case TF_BGR24_FLIP:case TF_MIP4_P8:case TF_MIP4_SOLID8:case TF_MIP4_8PAL24:case TF_MIP4_8PAL24_T255:case TF_SOLID8:case TF_TRANS8:case TF_TRANS8_FULLBRIGHT:case TF_HEIGHT8:case TF_HEIGHT8PAL:case TF_H2_T7G1:case TF_H2_TRANS8_0:case TF_H2_T4A4:case TF_8PAL24:case TF_8PAL32:case PTI_LLLX8:case PTI_LLLA8
302#define PTI_FULLMIPCHAIN 0x80000000
335int Font_CharWidth(
unsigned int charflags,
unsigned int codepoint);
338int Font_DrawChar(
int px,
int py,
unsigned int charflags,
unsigned int codepoint);
345 if (*
start & CON_LONGCHAR)
346 if (!(*
start & CON_RICHFORECOLOUR))
348 *codeflags =
start[1] & CON_FLAGSMASK;
349 *codepoint = ((
start[0] & CON_CHARMASK)<<16) | (
start[1] & CON_CHARMASK);
353 *codeflags =
start[0] & CON_FLAGSMASK;
354 *codepoint =
start[0] & CON_CHARMASK;
376 x =
x * (1.0f / 12.92f);
378 x = pow((
x + 0.055f) * (1.0f / 1.055f), 2.4f);
388 x = 1.055*pow(
x,(
float)(1.0 / 2.4) ) - 0.055;
393#define SRGBf(x) ((vid.flags&VID_SRGBAWARE)?M_SRGBToLinear(x,1):x)
394#define SRGBb(x) ((vid.flags&VID_SRGBAWARE)?(unsigned char)M_SRGBToLinear(x,255):x)
395#define SRGB3(x,y,z) SRGBf(x),SRGBf(y),SRGBf(z)
396#define SRGBA(x,y,z,w) SRGBf(x),SRGBf(y),SRGBf(z),w
unsigned int width
Definition: bymorphed.h:4
unsigned int height
Definition: bymorphed.h:5
dReal dReal dReal dReal dReal py
Definition: com_phys_ode.c:389
dReal dReal dReal dReal px
Definition: com_phys_ode.c:389
unsigned int conchar_t
Definition: common.h:476
fs_relative
Definition: common.h:661
intptr_t qintptr_t
Definition: common.h:38
char filename[64]
Definition: generatebuiltin.c:8
image_t * image
Definition: gl_font.c:402
GLfloat GLfloat y
Definition: glquake.h:158
GLfloat x
Definition: glquake.h:158
static png_size_t start
Definition: image.c:1419
float frametime
Definition: pmove.c:31
uploadfmt_t fmt
Definition: r_2d.c:48
vec3_t end
Definition: r_d3.c:692
cvar_t scr_fov_viewmodel
Definition: renderer.c:263
void SCR_DrawTurtle(void)
Definition: cl_screen.c:1825
enum uploadfmt uploadfmt_t
void VRUI_SnapAngle(void)
Definition: cl_main.c:359
float Font_LineScaleWidth(conchar_t *start, conchar_t *end)
Definition: gl_font.c:3075
int Font_GetTrueHeight(struct font_s *font)
Definition: gl_font.c:2871
void SCR_TileClear(int skipbottom)
Definition: cl_screen.c:3423
void Draw_TextBox(int x, int y, int width, int lines)
void R_FrameTimeGraph(float frametime, float scale)
Definition: gl_ngraph.c:222
struct font_s * font_default
Definition: gl_font.c:52
void PR_ReleaseFonts(unsigned int purgeowner)
Definition: pr_menu.c:186
int Font_RegisterTrackerImage(const char *image)
Definition: gl_font.c:407
conchar_t * Font_DecodeReverse(conchar_t *start, conchar_t *stop, unsigned int *codeflags, unsigned int *codepoint)
Definition: gl_font.c:2966
float Font_CharScaleWidth(unsigned int charflags, unsigned int codepoint)
Definition: gl_font.c:2947
void SCR_ShowPic_Create(void)
Definition: cl_screen.c:1524
void SCR_ShowPic_Script_f(void)
Definition: cl_screen.c:1636
qboolean Font_TrackerValid(unsigned int imid)
Definition: gl_font.c:437
fte_inline conchar_t * Font_Decode(conchar_t *start, unsigned int *codeflags, unsigned int *codepoint)
Definition: screen.h:343
cvar_t scr_fov
Definition: renderer.c:261
void Draw_ApproxTextBox(float x, float y, float width, float height)
Definition: m_items.c:9
int Font_CharPHeight(struct font_s *font)
Definition: gl_font.c:2867
float scr_con_target
Definition: cl_screen.c:197
void Font_Shutdown(void)
Definition: gl_font.c:573
fte_inline float M_SRGBToLinear(float x, float mag)
Definition: screen.h:372
void SCR_CheckDrawCenterString(void)
Definition: cl_screen.c:982
void SCR_ShowPic_ClearAll(qboolean persistflag)
Definition: cl_screen.c:1457
int Font_CharHeight(void)
Definition: gl_font.c:2863
struct font_s * font_menu
Definition: gl_font.c:51
void R_NetgraphInit(void)
Definition: gl_ngraph.c:359
void SCR_ImageName(const char *mapname)
Definition: cl_screen.c:2375
void Font_Transform(float vx, float vy, int *px, int *py)
Definition: gl_font.c:2821
int Font_CharEndCoord(struct font_s *font, int x, unsigned int charflags, unsigned int codepoint)
Definition: gl_font.c:2902
void Font_BeginString(struct font_s *font, float vx, float vy, int *px, int *py)
Definition: gl_font.c:2807
void SCR_DrawPause(void)
Definition: cl_screen.c:2027
@ LS_NONE
Definition: screen.h:310
@ LS_CONNECTION
Definition: screen.h:311
@ LS_SERVER
Definition: screen.h:312
@ LS_CLIENT
Definition: screen.h:313
void RSpeedShow(void)
Definition: cl_screen.c:36
qboolean SCR_RSShot(void)
Definition: cl_screen.c:3263
void SCR_CrosshairPosition(playerview_t *pview, float *x, float *y)
Definition: cl_screen.c:1709
int clearnotify
Definition: cl_screen.c:224
void SCR_ShowPic_Hide(void)
Definition: cl_screen.c:1544
void SCR_DrawTwoDimensional(qboolean nohud)
Definition: cl_screen.c:3451
void Font_EndString(struct font_s *font)
Definition: gl_font.c:2854
int sb_lines
Definition: sbar.c:139
void Font_Init(void)
Definition: gl_font.c:458
int Font_CharWidth(unsigned int charflags, unsigned int codepoint)
Definition: gl_font.c:2925
cvar_t scr_viewsize
Definition: renderer.c:272
void SCR_ShowPics_Draw(void)
Definition: cl_screen.c:1351
float Font_DrawScaleChar(float px, float py, unsigned int charflags, unsigned int codepoint)
Definition: gl_font.c:3416
struct font_s * font_tiny
Definition: gl_font.c:54
qboolean GLSCR_UpdateScreen(void)
Definition: gl_screen.c:60
void SCR_DrawNet(void)
Definition: cl_screen.c:1864
float Font_CharScaleHeight(void)
Definition: gl_font.c:2881
qboolean SCR_ScreenShot(char *filename, enum fs_relative fsroot, void **buffer, int numbuffers, qintptr_t bytestride, int width, int height, enum uploadfmt fmt, qboolean writemeta)
void Font_BeginScaledString(struct font_s *font, float vx, float vy, float szx, float szy, float *px, float *py)
Definition: gl_font.c:2828
qboolean scr_disabled_for_loading
Definition: cl_screen.c:230
void SCR_ShowPic_Remove_f(void)
Definition: cl_screen.c:1677
float Font_CharVHeight(struct font_s *font)
Definition: gl_font.c:2875
float scr_con_current
Definition: cl_screen.c:196
struct font_s * font_console
Definition: gl_font.c:53
void SCR_ShowPic_Move(void)
Definition: cl_screen.c:1564
uploadfmt
Definition: screen.h:96
@ PTI_ASTC_8X6_LDR
Definition: screen.h:179
@ PTI_A2BGR10
Definition: screen.h:133
@ PTI_ASTC_6X6X5_LDR
Definition: screen.h:197
@ PTI_ASTC_5X5X5_HDR
Definition: screen.h:247
@ PTI_ASTC_4X4_LDR
Definition: screen.h:173
@ PTI_ASTC_12X10_HDR
Definition: screen.h:238
@ PTI_RGB565
Definition: screen.h:135
@ PTI_ASTC_10X5_LDR
Definition: screen.h:180
@ PTI_BC4_R_SNORM
Definition: screen.h:152
@ TF_BGRA32
Definition: screen.h:293
@ TF_RGBX32
Definition: screen.h:294
@ PTI_ASTC_4X4X3_LDR
Definition: screen.h:191
@ PTI_ASTC_8X5_SRGB
Definition: screen.h:205
@ PTI_ASTC_8X5_LDR
Definition: screen.h:178
@ PTI_ETC2_RGB8A1_SRGB
Definition: screen.h:165
@ PTI_ASTC_12X10_SRGB
Definition: screen.h:212
@ TF_H2_TRANS8_0
Definition: screen.h:274
@ PTI_LLLA8
Definition: screen.h:278
@ PTI_BC2_RGBA
Definition: screen.h:147
@ PTI_ASTC_10X8_SRGB
Definition: screen.h:210
@ PTI_ASTC_5X5X5_LDR
Definition: screen.h:195
@ PTI_ASTC_5X5_SRGB
Definition: screen.h:202
@ PTI_BC6_RGB_SFLOAT
Definition: screen.h:156
@ TF_8PAL24
Definition: screen.h:281
@ PTI_B10G11R11F
Definition: screen.h:134
@ PTI_BC1_RGB_SRGB
Definition: screen.h:144
@ PTI_ASTC_4X4X4_SRGB
Definition: screen.h:218
@ TF_BGR24
Definition: screen.h:297
@ PTI_ASTC_6X5_HDR
Definition: screen.h:229
@ TF_MIP4_8PAL24_T255
Definition: screen.h:267
@ PTI_BGRA8
Definition: screen.h:103
@ PTI_ASTC_5X4_LDR
Definition: screen.h:174
@ PTI_ETC2_RGB8A8_SRGB
Definition: screen.h:166
@ PTI_ARGB1555
Definition: screen.h:139
@ PTI_BC7_RGBA
Definition: screen.h:157
@ PTI_RGBA16
Definition: screen.h:125
@ PTI_BC1_RGBA
Definition: screen.h:145
@ PTI_ASTC_5X5X4_LDR
Definition: screen.h:194
@ TF_H2_T7G1
Definition: screen.h:273
@ PTI_ASTC_4X4_HDR
Definition: screen.h:226
@ PTI_ASTC_12X12_LDR
Definition: screen.h:186
@ TF_8PAL32
Definition: screen.h:282
@ TF_TRANS8_FULLBRIGHT
Definition: screen.h:270
@ PTI_ASTC_8X8_SRGB
Definition: screen.h:209
@ PTI_ETC2_RGB8_SRGB
Definition: screen.h:164
@ PTI_ASTC_6X6X5_HDR
Definition: screen.h:249
@ PTI_ASTC_5X4X4_LDR
Definition: screen.h:193
@ PTI_R8_SNORM
Definition: screen.h:121
@ PTI_ASTC_12X12_SRGB
Definition: screen.h:213
@ PTI_ASTC_6X6X6_LDR
Definition: screen.h:198
@ PTI_ASTC_3X3X3_SRGB
Definition: screen.h:215
@ TF_MIP4_SOLID8
Definition: screen.h:265
@ TF_H2_T4A4
Definition: screen.h:275
@ PTI_ASTC_4X3X3_HDR
Definition: screen.h:242
@ PTI_ASTC_10X6_LDR
Definition: screen.h:181
@ PTI_RGBA5551
Definition: screen.h:138
@ PTI_L8
Definition: screen.h:113
@ PTI_ASTC_5X4_SRGB
Definition: screen.h:201
@ PTI_MAX
Definition: screen.h:289
@ PTI_RGBA16F
Definition: screen.h:130
@ PTI_ASTC_4X3X3_LDR
Definition: screen.h:190
@ PTI_RGBA32F
Definition: screen.h:131
@ PTI_BGR8
Definition: screen.h:110
@ PTI_ASTC_4X4_SRGB
Definition: screen.h:200
@ PTI_LLLX8
Definition: screen.h:277
@ PTI_ASTC_4X4X3_SRGB
Definition: screen.h:217
@ TF_MIP4_P8
Definition: screen.h:264
@ PTI_RGBA8
Definition: screen.h:101
@ PTI_BGRX8
Definition: screen.h:104
@ PTI_BGR8_SRGB
Definition: screen.h:112
@ PTI_ASTC_6X5X5_LDR
Definition: screen.h:196
@ PTI_ASTC_8X6_HDR
Definition: screen.h:232
@ PTI_RG8
Definition: screen.h:120
@ PTI_EAC_RG11_SNORM
Definition: screen.h:170
@ PTI_L8A8
Definition: screen.h:114
@ PTI_ARGB4444
Definition: screen.h:137
@ PTI_ASTC_6X6X5_SRGB
Definition: screen.h:223
@ PTI_ASTC_6X6_HDR
Definition: screen.h:230
@ PTI_EAC_R11
Definition: screen.h:167
@ PTI_R16F
Definition: screen.h:127
@ PTI_ETC2_RGB8A8
Definition: screen.h:163
@ PTI_L8A8_SRGB
Definition: screen.h:116
@ TF_BGRX32
Definition: screen.h:295
@ PTI_BGRX8_SRGB
Definition: screen.h:108
@ PTI_ASTC_6X5_LDR
Definition: screen.h:176
@ PTI_P8
Definition: screen.h:118
@ PTI_ASTC_10X6_HDR
Definition: screen.h:234
@ PTI_ASTC_10X10_SRGB
Definition: screen.h:211
@ PTI_BC1_RGBA_SRGB
Definition: screen.h:146
@ TF_INVALID
Definition: screen.h:291
@ PTI_ASTC_6X5_SRGB
Definition: screen.h:203
@ PTI_ASTC_10X5_HDR
Definition: screen.h:233
@ PTI_ASTC_6X5X5_HDR
Definition: screen.h:248
@ PTI_RGB32F
Definition: screen.h:129
@ PTI_ASTC_3X3X3_LDR
Definition: screen.h:189
@ PTI_ASTC_8X5_HDR
Definition: screen.h:231
@ PTI_ASTC_10X5_SRGB
Definition: screen.h:207
@ PTI_ETC2_RGB8
Definition: screen.h:161
@ PTI_ETC2_RGB8A1
Definition: screen.h:162
@ PTI_ASTC_5X5X4_SRGB
Definition: screen.h:220
@ PTI_ASTC_6X5X5_SRGB
Definition: screen.h:222
@ PTI_BC6_RGB_UFLOAT
Definition: screen.h:155
@ PTI_ASTC_10X10_HDR
Definition: screen.h:237
@ PTI_ASTC_10X8_HDR
Definition: screen.h:236
@ TF_RGBA32
Definition: screen.h:292
@ PTI_BC5_RG
Definition: screen.h:153
@ TF_TRANS8
Definition: screen.h:269
@ PTI_BC3_RGBA
Definition: screen.h:149
@ PTI_BC1_RGB
Definition: screen.h:143
@ PTI_RG8_SNORM
Definition: screen.h:122
@ PTI_ASTC_4X4X4_LDR
Definition: screen.h:192
@ PTI_ASTC_5X5X5_SRGB
Definition: screen.h:221
@ PTI_ASTC_4X4X4_HDR
Definition: screen.h:244
@ PTI_RGB8
Definition: screen.h:109
@ PTI_ASTC_6X6_LDR
Definition: screen.h:177
@ PTI_ASTC_10X6_SRGB
Definition: screen.h:208
@ PTI_ASTC_8X8_LDR
Definition: screen.h:182
@ PTI_ASTC_5X5_HDR
Definition: screen.h:228
@ PTI_BC4_R
Definition: screen.h:151
@ PTI_BC7_RGBA_SRGB
Definition: screen.h:158
@ PTI_BC3_RGBA_SRGB
Definition: screen.h:150
@ TF_MIP4_8PAL24
Definition: screen.h:266
@ PTI_RGBX8
Definition: screen.h:102
@ PTI_R32F
Definition: screen.h:128
@ PTI_DEPTH24
Definition: screen.h:258
@ PTI_ASTC_8X6_SRGB
Definition: screen.h:206
@ PTI_INVALID
Definition: screen.h:98
@ PTI_ASTC_5X4_HDR
Definition: screen.h:227
@ PTI_EAC_RG11
Definition: screen.h:169
@ PTI_ASTC_10X10_LDR
Definition: screen.h:184
@ PTI_E5BGR9
Definition: screen.h:141
@ PTI_ASTC_4X4X3_HDR
Definition: screen.h:243
@ PTI_DEPTH24_8
Definition: screen.h:260
@ PTI_ASTC_6X6_SRGB
Definition: screen.h:204
@ PTI_ASTC_5X4X4_HDR
Definition: screen.h:245
@ PTI_RGB8_SRGB
Definition: screen.h:111
@ PTI_ASTC_5X4X4_SRGB
Definition: screen.h:219
@ TF_RGB24
Definition: screen.h:296
@ TF_SOLID8
Definition: screen.h:268
@ PTI_BC5_RG_SNORM
Definition: screen.h:154
@ PTI_ASTC_8X8_HDR
Definition: screen.h:235
@ PTI_BC2_RGBA_SRGB
Definition: screen.h:148
@ PTI_RGBX8_SRGB
Definition: screen.h:106
@ TF_HEIGHT8
Definition: screen.h:271
@ PTI_ASTC_12X10_LDR
Definition: screen.h:185
@ PTI_WHOLEFILE
Definition: screen.h:286
@ PTI_ASTC_6X6X6_SRGB
Definition: screen.h:224
@ PTI_ASTC_12X12_HDR
Definition: screen.h:239
@ PTI_ASTC_5X5_LDR
Definition: screen.h:175
@ PTI_R16
Definition: screen.h:124
@ PTI_DEPTH32
Definition: screen.h:259
@ PTI_RGBA8_SRGB
Definition: screen.h:105
@ TF_HEIGHT8PAL
Definition: screen.h:272
@ PTI_EAC_R11_SNORM
Definition: screen.h:168
@ PTI_RGBA4444
Definition: screen.h:136
@ PTI_DEPTH16
Definition: screen.h:257
@ PTI_ASTC_4X3X3_SRGB
Definition: screen.h:216
@ PTI_L8_SRGB
Definition: screen.h:115
@ PTI_ETC1_RGB8
Definition: screen.h:160
@ PTI_ASTC_10X8_LDR
Definition: screen.h:183
@ PTI_BGRA8_SRGB
Definition: screen.h:107
@ TF_BGR24_FLIP
Definition: screen.h:263
@ PTI_R8
Definition: screen.h:119
@ PTI_ASTC_5X5X4_HDR
Definition: screen.h:246
@ PTI_ASTC_6X6X6_HDR
Definition: screen.h:250
@ PTI_ASTC_3X3X3_HDR
Definition: screen.h:241
int Font_DrawChar(int px, int py, unsigned int charflags, unsigned int codepoint)
Definition: gl_font.c:3141
fte_inline float M_LinearToSRGB(float x, float mag)
Definition: screen.h:382
vrui_t vrui
Definition: cl_main.c:358
void SCR_SetLoadingStage(int stage)
Definition: cl_screen.c:2071
void R_NetGraph(void)
Definition: gl_ngraph.c:89
void Font_InvalidateColour(vec4_t newcolour)
Definition: gl_font.c:3118
qboolean SCR_HardwareCursorIsActive(void)
Definition: cl_screen.c:1050
conchar_t * Font_CharAt(int x, conchar_t *start, conchar_t *end)
Definition: gl_font.c:3100
void SCR_ShowPic_Update(void)
Definition: cl_screen.c:1576
int SCR_GetLoadingStage(void)
Definition: cl_screen.c:2067
void PR_ReloadFonts(qboolean reload)
Definition: pr_menu.c:212
void SCR_DrawLoading(qboolean opaque)
Definition: cl_screen.c:2112
struct font_s * Font_LoadFont(const char *fontfilename, float height, float scale, int outline, unsigned int flags)
Definition: gl_font.c:2323
int Font_LineBreaks(conchar_t *start, conchar_t *end, int maxpixelwidth, int maxlines, conchar_t **starts, conchar_t **ends)
Definition: gl_font.c:2994
void Font_Free(struct font_s *f)
Definition: gl_font.c:2748
int Font_LineWidth(conchar_t *start, conchar_t *end)
Definition: gl_font.c:3062
void Font_LineDraw(int x, int y, conchar_t *start, conchar_t *end)
Definition: gl_font.c:3087
void SCR_SetLoadingFile(char *str)
Definition: cl_screen.c:2093
void CLSCR_Init(void)
Definition: cl_screen.c:272
void SCR_DrawNotifyString(void)
const char * SCR_ShowPics_ClickCommand(float cx, float cy, qboolean loadtouch)
Definition: cl_screen.c:1398
static ALC_API ALCvoid * buffer
Definition: snd_al.c:259
vec3_t angles
Definition: screen.h:41
qboolean enabled
Definition: screen.h:40
unsigned int flags
Definition: valid.c:313