vkQuake2 doxygen  1.0 dev
screen.h File Reference

Go to the source code of this file.

Functions

void SCR_Init (void)
 
void SCR_UpdateScreen (void)
 
void SCR_SizeUp (void)
 
void SCR_SizeDown (void)
 
void SCR_CenterPrint (char *str)
 
void SCR_BeginLoadingPlaque (void)
 
void SCR_EndLoadingPlaque (void)
 
void SCR_DebugGraph (float value, int color)
 
void SCR_TouchPics (void)
 
void SCR_RunConsole (void)
 
void SCR_AddDirtyPoint (int x, int y)
 
void SCR_DirtyScreen (void)
 
void SCR_PlayCinematic (char *name)
 
qboolean SCR_DrawCinematic (void)
 
void SCR_RunCinematic (void)
 
void SCR_StopCinematic (void)
 
void SCR_FinishCinematic (void)
 

Variables

float scr_con_current
 
float scr_conlines
 
int sb_lines
 
cvar_tscr_viewsize
 
cvar_tcrosshair
 
vrect_t scr_vrect
 
char crosshair_pic [MAX_QPATH]
 
int crosshair_width
 
int crosshair_height
 

Function Documentation

◆ SCR_AddDirtyPoint()

void SCR_AddDirtyPoint ( int  x,
int  y 
)

Definition at line 669 of file cl_scrn.c.

670 {
671  if (x < scr_dirty.x1)
672  scr_dirty.x1 = x;
673  if (x > scr_dirty.x2)
674  scr_dirty.x2 = x;
675  if (y < scr_dirty.y1)
676  scr_dirty.y1 = y;
677  if (y > scr_dirty.y2)
678  scr_dirty.y2 = y;
679 }

Referenced by CL_PrepRefresh(), Con_DrawConsole(), Con_DrawNotify(), SCR_DirtyScreen(), SCR_DrawCenterString(), SCR_DrawField(), SCR_ExecuteLayoutString(), and V_RenderView().

◆ SCR_BeginLoadingPlaque()

void SCR_BeginLoadingPlaque ( void  )

Definition at line 562 of file cl_scrn.c.

563 {
564  S_StopAllSounds ();
565  cl.sound_prepped = false; // don't play ambients
566  CDAudio_Stop ();
567  Miniaudio_Stop ();
568  if (cls.disable_screen)
569  return;
570  if (developer->value)
571  return;
572  if (cls.state == ca_disconnected)
573  return; // if at console, don't bring up the plaque
574  if (cls.key_dest == key_console)
575  return;
576  if (cl.cinematictime > 0)
577  scr_draw_loading = 2; // clear to balack first
578  else
579  scr_draw_loading = 1;
580  SCR_UpdateScreen ();
583 }

Referenced by SCR_Loading_f().

◆ SCR_CenterPrint()

void SCR_CenterPrint ( char *  str)

Definition at line 201 of file cl_scrn.c.

202 {
203  char *s;
204  char line[64];
205  int i, j, l;
206 
207  strncpy (scr_centerstring, str, sizeof(scr_centerstring)-1);
210 
211  // count the number of lines for centering
212  scr_center_lines = 1;
213  s = str;
214  while (*s)
215  {
216  if (*s == '\n')
218  s++;
219  }
220 
221  // echo it to the console
222  Com_Printf("\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n\n");
223 
224  s = str;
225  do
226  {
227  // scan the width of the line
228  for (l=0 ; l<40 ; l++)
229  if (s[l] == '\n' || !s[l])
230  break;
231  for (i=0 ; i<(40-l)/2 ; i++)
232  line[i] = ' ';
233 
234  for (j=0 ; j<l ; j++)
235  {
236  line[i++] = s[j];
237  }
238 
239  line[i] = '\n';
240  line[i+1] = 0;
241 
242  Com_Printf ("%s", line);
243 
244  while (*s && *s != '\n')
245  s++;
246 
247  if (!*s)
248  break;
249  s++; // skip the \n
250  } while (1);
251  Com_Printf("\n\n\35\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\36\37\n\n");
252  Con_ClearNotify ();
253 }

Referenced by CL_ParseServerMessage().

◆ SCR_DebugGraph()

void SCR_DebugGraph ( float  value,
int  color 
)

Definition at line 137 of file cl_scrn.c.

138 {
139  values[current&1023].value = value;
140  values[current&1023].color = color;
141  current++;
142 }

◆ SCR_DirtyScreen()

void SCR_DirtyScreen ( void  )

Definition at line 681 of file cl_scrn.c.

682 {
683  SCR_AddDirtyPoint (0, 0);
685 }

Referenced by CL_DrawInventory(), M_Draw(), and MainWndProc().

◆ SCR_DrawCinematic()

qboolean SCR_DrawCinematic ( void  )

Definition at line 541 of file cl_cin.c.

542 {
543  if (cl.cinematictime <= 0)
544  {
545  return false;
546  }
547 
548  if (cls.key_dest == key_menu)
549  { // blank screen and pause if menu is up
551  cl.cinematicpalette_active = false;
552  return true;
553  }
554 
556  {
559  }
560 
561  if (!cin.pic)
562  return true;
563 
565  cin.width, cin.height, cin.pic);
566 
567  return true;
568 }

Referenced by SCR_UpdateScreen().

◆ SCR_EndLoadingPlaque()

void SCR_EndLoadingPlaque ( void  )

Definition at line 590 of file cl_scrn.c.

591 {
592  cls.disable_screen = 0;
593  Con_ClearNotify ();
594 }

◆ SCR_FinishCinematic()

void SCR_FinishCinematic ( void  )

Definition at line 198 of file cl_cin.c.

199 {
200  // tell the server to advance to the next map / cinematic
202  SZ_Print (&cls.netchan.message, va("nextserver %i\n", cl.servercount));
203 }

Referenced by CL_SendCmd(), SCR_PlayCinematic(), and SCR_RunCinematic().

◆ SCR_Init()

void SCR_Init ( void  )

Definition at line 410 of file cl_scrn.c.

411 {
412  scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE);
413  scr_conspeed = Cvar_Get ("scr_conspeed", "3", 0);
414  scr_showturtle = Cvar_Get ("scr_showturtle", "0", 0);
415  scr_showpause = Cvar_Get ("scr_showpause", "1", 0);
416  scr_centertime = Cvar_Get ("scr_centertime", "2.5", 0);
417  scr_printspeed = Cvar_Get ("scr_printspeed", "8", 0);
418  scr_netgraph = Cvar_Get ("netgraph", "0", 0);
419  scr_timegraph = Cvar_Get ("timegraph", "0", 0);
420  scr_debuggraph = Cvar_Get ("debuggraph", "0", 0);
421  scr_graphheight = Cvar_Get ("graphheight", "32", 0);
422  scr_graphscale = Cvar_Get ("graphscale", "1", 0);
423  scr_graphshift = Cvar_Get ("graphshift", "0", 0);
424  scr_drawall = Cvar_Get ("scr_drawall", "0", 0);
425 
426 //
427 // register our commands
428 //
429  Cmd_AddCommand ("timerefresh",SCR_TimeRefresh_f);
430  Cmd_AddCommand ("loading",SCR_Loading_f);
431  Cmd_AddCommand ("sizeup",SCR_SizeUp_f);
432  Cmd_AddCommand ("sizedown",SCR_SizeDown_f);
433  Cmd_AddCommand ("sky",SCR_Sky_f);
434 
435  scr_initialized = true;
436 }

Referenced by CL_Init().

◆ SCR_PlayCinematic()

void SCR_PlayCinematic ( char *  name)

Definition at line 576 of file cl_cin.c.

577 {
578  int width, height;
579  byte *palette;
580  char name[MAX_OSPATH], *dot;
581  int old_khz;
582 
583  // make sure CD isn't playing music
584  CDAudio_Stop();
585  Miniaudio_Stop();
586 
587  cl.cinematicframe = 0;
588  dot = strstr (arg, ".");
589  if (dot && !strcmp (dot, ".pcx"))
590  { // static pcx image
591  Com_sprintf (name, sizeof(name), "pics/%s", arg);
592  SCR_LoadPCX (name, &cin.pic, &palette, &cin.width, &cin.height);
593  cl.cinematicframe = -1;
594  cl.cinematictime = 1;
596  cls.state = ca_active;
597  if (!cin.pic)
598  {
599  Com_Printf ("%s not found.\n", name);
600  cl.cinematictime = 0;
601  }
602  else
603  {
604  memcpy (cl.cinematicpalette, palette, sizeof(cl.cinematicpalette));
605  Z_Free (palette);
606  }
607  return;
608  }
609 
610  Com_sprintf (name, sizeof(name), "video/%s", arg);
612  if (!cl.cinematic_file)
613  {
614 // Com_Error (ERR_DROP, "Cinematic %s not found.\n", name);
616  cl.cinematictime = 0; // done
617  return;
618  }
619 
621 
622  cls.state = ca_active;
623 
628 
635 
636  Huff1TableInit ();
637 
638  // switch up to 22 khz sound if necessary
639  old_khz = Cvar_VariableValue ("s_khz");
640  if (old_khz != cin.s_rate/1000)
641  {
642  cin.restart_sound = true;
643  Cvar_SetValue ("s_khz", cin.s_rate/1000);
644  CL_Snd_Restart_f ();
645  Cvar_SetValue ("s_khz", old_khz);
646  }
647 
648  cl.cinematicframe = 0;
651 }

Referenced by CL_ParseServerData().

◆ SCR_RunCinematic()

void SCR_RunCinematic ( void  )

Definition at line 490 of file cl_cin.c.

491 {
492  int frame;
493 
494  if (cl.cinematictime <= 0)
495  {
497  return;
498  }
499 
500  if (cl.cinematicframe == -1)
501  return; // static image
502 
503  if (cls.key_dest != key_game)
504  { // pause if menu or console is up
506  return;
507  }
508 
509  frame = (cls.realtime - cl.cinematictime)*14.0/1000;
510  if (frame <= cl.cinematicframe)
511  return;
512  if (frame > cl.cinematicframe+1)
513  {
514  Com_Printf ("Dropped frame: %i > %i\n", frame, cl.cinematicframe+1);
516  }
517  if (cin.pic)
518  Z_Free (cin.pic);
520  cin.pic_pending = NULL;
522  if (!cin.pic_pending)
523  {
526  cl.cinematictime = 1; // hack to get the black screen behind loading
528  cl.cinematictime = 0;
529  return;
530  }
531 }

Referenced by CL_Frame().

◆ SCR_RunConsole()

void SCR_RunConsole ( void  )

Definition at line 498 of file cl_scrn.c.

499 {
500 // decide on the height of the console
501  if (cls.key_dest == key_console)
502  scr_conlines = 0.5; // half screen
503  else
504  scr_conlines = 0; // none visible
505 
507  {
511 
512  }
513  else if (scr_conlines > scr_con_current)
514  {
518  }
519 
520 }

Referenced by CL_Frame().

◆ SCR_SizeDown()

void SCR_SizeDown ( void  )

◆ SCR_SizeUp()

void SCR_SizeUp ( void  )

◆ SCR_StopCinematic()

void SCR_StopCinematic ( void  )

Definition at line 153 of file cl_cin.c.

154 {
155  cl.cinematictime = 0; // done
156  if (cin.pic)
157  {
158  Z_Free (cin.pic);
159  cin.pic = NULL;
160  }
161  if (cin.pic_pending)
162  {
164  cin.pic_pending = NULL;
165  }
167  {
169  cl.cinematicpalette_active = false;
170  }
171  if (cl.cinematic_file)
172  {
173  fclose (cl.cinematic_file);
175  }
176  if (cin.hnodes1)
177  {
178  Z_Free (cin.hnodes1);
179  cin.hnodes1 = NULL;
180  }
181 
182  // switch back down to 11 khz sound if necessary
183  if (cin.restart_sound)
184  {
185  cin.restart_sound = false;
186  CL_Snd_Restart_f ();
187  }
188 
189 }

Referenced by CL_Disconnect(), and SCR_RunCinematic().

◆ SCR_TouchPics()

void SCR_TouchPics ( void  )

Definition at line 863 of file cl_scrn.c.

864 {
865  int i, j;
866 
867  for (i=0 ; i<2 ; i++)
868  for (j=0 ; j<11 ; j++)
869  re.RegisterPic (sb_nums[i][j]);
870 
871  if (crosshair->value)
872  {
873  if (crosshair->value > 3 || crosshair->value < 0)
874  crosshair->value = 3;
875 
876  Com_sprintf (crosshair_pic, sizeof(crosshair_pic), "ch%i", (int)(crosshair->value));
878  if (!crosshair_width)
879  crosshair_pic[0] = 0;
880  }
881 }

Referenced by CL_PrepRefresh(), and SCR_DrawCrosshair().

◆ SCR_UpdateScreen()

void SCR_UpdateScreen ( void  )

Definition at line 1215 of file cl_scrn.c.

1216 {
1217  int numframes;
1218  int i;
1219  float separation[2] = { 0, 0 };
1220 
1221  // if the screen is disabled (loading plaque is up, or vid mode changing)
1222  // do nothing at all
1223  if (cls.disable_screen)
1224  {
1225  if (Sys_Milliseconds() - cls.disable_screen > 120000)
1226  {
1227  cls.disable_screen = 0;
1228  Com_Printf ("Loading plaque timed out.\n");
1229  }
1230  return;
1231  }
1232 
1233  if (!scr_initialized || !con.initialized)
1234  return; // not initialized yet
1235 
1236  /*
1237  ** range check cl_camera_separation so we don't inadvertently fry someone's
1238  ** brain
1239  */
1240  if ( cl_stereo_separation->value > 1.0 )
1241  Cvar_SetValue( "cl_stereo_separation", 1.0 );
1242  else if ( cl_stereo_separation->value < 0 )
1243  Cvar_SetValue( "cl_stereo_separation", 0.0 );
1244 
1245  if ( cl_stereo->value )
1246  {
1247  numframes = 2;
1248  separation[0] = -cl_stereo_separation->value / 2;
1249  separation[1] = cl_stereo_separation->value / 2;
1250  }
1251  else
1252  {
1253  separation[0] = 0;
1254  separation[1] = 0;
1255  numframes = 1;
1256  }
1257 
1258  for ( i = 0; i < numframes; i++ )
1259  {
1260  re.BeginFrame( separation[i] );
1261  // end frame and force video restart if swapchain is out of date
1262  if (vid_ref->modified)
1263  {
1265  re.EndFrame();
1266  return;
1267  }
1268 
1269  if (scr_draw_loading == 2)
1270  { // loading plaque over black screen
1271  int w, h;
1272 
1275  scr_draw_loading = false;
1276  re.DrawGetPicSize (&w, &h, "loading");
1277  re.DrawPic ((viddef.width-w)/2, (viddef.height-h)/2, "loading");
1278 // re.EndFrame();
1279 // return;
1280  }
1281  // if a cinematic is supposed to be running, handle menus
1282  // and console specially
1283  else if (cl.cinematictime > 0)
1284  {
1285  if (cls.key_dest == key_menu)
1286  {
1288  {
1290  cl.cinematicpalette_active = false;
1291  }
1293  M_Draw ();
1294 // re.EndFrame();
1295 // return;
1296  }
1297  else if (cls.key_dest == key_console)
1298  {
1300  {
1302  cl.cinematicpalette_active = false;
1303  }
1305  SCR_DrawConsole ();
1306 // re.EndFrame();
1307 // return;
1308  }
1309  else
1310  {
1313 // re.EndFrame();
1314 // return;
1315  }
1316  }
1317  else
1318  {
1319 
1320  // make sure the game palette is active
1322  {
1324  cl.cinematicpalette_active = false;
1325  }
1326 
1327  // do 3D refresh drawing, and then update the screen
1328  SCR_CalcVrect ();
1329 
1330  V_RenderView ( separation[i] );
1331 
1332  // clear any dirty part of the background
1333  SCR_TileClear ();
1334 
1335  SCR_DrawStats ();
1337  SCR_DrawLayout ();
1339  CL_DrawInventory ();
1340 
1341  SCR_DrawNet ();
1343 
1344  if (scr_timegraph->value)
1345  SCR_DebugGraph (cls.frametime*300, 0);
1346 
1348  SCR_DrawDebugGraph ();
1349 
1350  SCR_DrawPause ();
1351 
1352  SCR_DrawConsole ();
1353 
1354  M_Draw ();
1355 
1356  SCR_DrawLoading ();
1357  }
1358  }
1359  re.EndFrame();
1360 }

Referenced by CL_Frame(), CL_PrepRefresh(), CL_Skins_f(), Key_Console(), and SCR_BeginLoadingPlaque().

Variable Documentation

◆ crosshair

cvar_t* crosshair

Definition at line 33 of file cl_view.c.

Referenced by ControlsSetMenuItemValues(), SCR_DrawCrosshair(), SCR_TouchPics(), and V_Init().

◆ crosshair_height

int crosshair_height

Definition at line 49 of file screen.h.

◆ crosshair_pic

char crosshair_pic[MAX_QPATH]

Definition at line 74 of file cl_scrn.c.

Referenced by SCR_DrawCrosshair(), and SCR_TouchPics().

◆ crosshair_width

int crosshair_width

Definition at line 75 of file cl_scrn.c.

Referenced by SCR_DrawCrosshair(), and SCR_TouchPics().

◆ sb_lines

int sb_lines

◆ scr_con_current

float scr_con_current

Definition at line 39 of file cl_scrn.c.

Referenced by SCR_DrawConsole(), SCR_RunConsole(), and SCR_TileClear().

◆ scr_conlines

float scr_conlines

Definition at line 40 of file cl_scrn.c.

Referenced by SCR_RunConsole().

◆ scr_viewsize

cvar_t* scr_viewsize

Definition at line 49 of file cl_scrn.c.

Referenced by SCR_CalcVrect(), SCR_Init(), SCR_SizeDown_f(), SCR_SizeUp_f(), and SCR_TileClear().

◆ scr_vrect

crosshair
cvar_t * crosshair
Definition: cl_view.c:33
SCR_LoadPCX
void SCR_LoadPCX(char *filename, byte **pic, byte **palette, int *width, int *height)
Definition: cl_cin.c:64
CDAudio_Stop
void CDAudio_Stop(void)
Definition: cd_win.c:194
FS_Read
void FS_Read(void *buffer, int len, FILE *f)
Definition: files.c:350
SCR_EndLoadingPlaque
void SCR_EndLoadingPlaque(void)
Definition: cl_scrn.c:590
scr_graphheight
cvar_t * scr_graphheight
Definition: cl_scrn.c:59
height
GLsizei height
Definition: qgl_win.c:69
value
GLfloat value
Definition: qgl_win.c:63
scr_centerstring
char scr_centerstring[1024]
Definition: cl_scrn.c:187
client_state_t::servercount
int servercount
Definition: client.h:154
SCR_DrawConsole
void SCR_DrawConsole(void)
Definition: cl_scrn.c:527
sb_nums
char * sb_nums[2][11]
Definition: cl_scrn.c:727
scr_printspeed
cvar_t * scr_printspeed
Definition: cl_scrn.c:54
scr_dirty
dirty_t scr_dirty
Definition: cl_scrn.c:72
Huff1TableInit
void Huff1TableInit(void)
Definition: cl_cin.c:247
SCR_CheckDrawCenterString
void SCR_CheckDrawCenterString(void)
Definition: cl_scrn.c:302
client_static_t::disable_screen
float disable_screen
Definition: client.h:212
scr_timegraph
cvar_t * scr_timegraph
Definition: cl_scrn.c:57
ca_disconnected
@ ca_disconnected
Definition: client.h:186
SCR_SizeDown_f
void SCR_SizeDown_f(void)
Definition: cl_scrn.c:361
scr_centertime
cvar_t * scr_centertime
Definition: cl_scrn.c:51
scr_showturtle
cvar_t * scr_showturtle
Definition: cl_scrn.c:52
refexport_t::DrawStretchRaw
void(* DrawStretchRaw)(int x, int y, int w, int h, int cols, int rows, byte *data)
Definition: ref.h:175
cvar_s::modified
qboolean modified
Definition: q_shared.h:330
SCR_DrawDebugGraph
void SCR_DrawDebugGraph(void)
Definition: cl_scrn.c:149
netchan_t::message
sizebuf_t message
Definition: qcommon.h:608
SCR_TimeRefresh_f
void SCR_TimeRefresh_f(void)
Definition: cl_scrn.c:626
refexport_t::RegisterPic
struct image_s *(* RegisterPic)(char *name)
Definition: ref.h:160
scr_conspeed
cvar_t * scr_conspeed
Definition: cl_scrn.c:50
cinematics_t::s_channels
int s_channels
Definition: cl_cin.c:33
x
GLint GLenum GLint x
Definition: qgl_win.c:116
client_static_t::disable_servercount
int disable_servercount
Definition: client.h:215
i
int i
Definition: q_shared.c:305
scr_con_current
float scr_con_current
Definition: cl_scrn.c:39
SCR_DrawPause
void SCR_DrawPause(void)
Definition: cl_scrn.c:458
V_RenderView
void V_RenderView(float stereo_separation)
Definition: cl_view.c:446
ca_active
@ ca_active
Definition: client.h:189
scr_debuggraph
cvar_t * scr_debuggraph
Definition: cl_scrn.c:58
client_state_t::cinematictime
int cinematictime
Definition: client.h:145
CL_DrawInventory
void CL_DrawInventory(void)
Definition: cl_inv.c:68
width
GLint GLsizei width
Definition: qgl_win.c:115
SCR_DrawStats
void SCR_DrawStats(void)
Definition: cl_scrn.c:1184
scr_drawall
cvar_t * scr_drawall
Definition: cl_scrn.c:62
SCR_BeginLoadingPlaque
void SCR_BeginLoadingPlaque(void)
Definition: cl_scrn.c:562
Cvar_Get
cvar_t * Cvar_Get(char *var_name, char *var_value, int flags)
Definition: cvar.c:127
FS_FOpenFile
int FS_FOpenFile(char *filename, FILE **file)
Definition: files.c:206
key_menu
@ key_menu
Definition: client.h:200
scr_centertime_off
float scr_centertime_off
Definition: cl_scrn.c:189
scr_graphscale
cvar_t * scr_graphscale
Definition: cl_scrn.c:60
viddef
viddef_t viddef
Definition: vid_dll.c:54
refexport_t::EndFrame
void(* EndFrame)(void)
Definition: ref.h:182
j
GLint j
Definition: qgl_win.c:150
va
char * va(char *format,...)
Definition: q_shared.c:1050
scr_center_lines
int scr_center_lines
Definition: cl_scrn.c:190
client_state_t::cinematicframe
int cinematicframe
Definition: client.h:146
SCR_UpdateScreen
void SCR_UpdateScreen(void)
Definition: cl_scrn.c:1215
SCR_SizeUp_f
void SCR_SizeUp_f(void)
Definition: cl_scrn.c:348
SZ_Print
void SZ_Print(sizebuf_t *buf, char *data)
Definition: common.c:926
cinematics_t::pic
byte * pic
Definition: cl_cin.c:37
cin
cinematics_t cin
Definition: cl_cin.c:48
crosshair_height
int crosshair_height
Definition: cl_scrn.c:75
cinematics_t::height
int height
Definition: cl_cin.c:36
SCR_DrawLayout
void SCR_DrawLayout(void)
Definition: cl_scrn.c:1198
CL_Snd_Restart_f
void CL_Snd_Restart_f(void)
Definition: cl_main.c:1098
scr_centertime_start
float scr_centertime_start
Definition: cl_scrn.c:188
LittleLong
int LittleLong(int l)
Definition: q_shared.c:948
viddef_t::width
unsigned width
Definition: vid.h:29
scr_initialized
qboolean scr_initialized
Definition: cl_scrn.c:42
client_state_t::cinematicpalette
char cinematicpalette[768]
Definition: client.h:147
cinematics_t::s_width
int s_width
Definition: cl_cin.c:32
dirty_t::x1
int x1
Definition: cl_scrn.c:69
SCR_DrawCinematic
qboolean SCR_DrawCinematic(void)
Definition: cl_cin.c:541
STAT_LAYOUTS
#define STAT_LAYOUTS
Definition: cl_scrn.c:1196
Cmd_AddCommand
void Cmd_AddCommand(char *cmd_name, xcommand_t function)
Definition: cmd.c:691
vid_ref
cvar_t * vid_ref
Definition: vid_dll.c:44
key_game
@ key_game
Definition: client.h:200
SCR_TileClear
void SCR_TileClear(void)
Definition: cl_scrn.c:694
SCR_ReadNextFrame
byte * SCR_ReadNextFrame(void)
Definition: cl_cin.c:427
CVAR_ARCHIVE
#define CVAR_ARCHIVE
Definition: q_shared.h:316
viddef_t::height
unsigned height
Definition: vid.h:29
cl_stereo_separation
cvar_t * cl_stereo_separation
Definition: cl_main.c:36
SCR_Loading_f
void SCR_Loading_f(void)
Definition: cl_scrn.c:601
scr_netgraph
cvar_t * scr_netgraph
Definition: cl_scrn.c:56
cinematics_t::width
int width
Definition: cl_cin.c:35
cvar_s::value
float value
Definition: q_shared.h:331
Cvar_SetValue
void Cvar_SetValue(char *var_name, float value)
Definition: cvar.c:317
SCR_DebugGraph
void SCR_DebugGraph(float value, int color)
Definition: cl_scrn.c:137
MAX_OSPATH
#define MAX_OSPATH
Definition: q_shared.h:81
dirty_t::y2
int y2
Definition: cl_scrn.c:69
SCR_DrawNet
void SCR_DrawNet(void)
Definition: cl_scrn.c:444
con
console_t con
Definition: console.c:25
key_console
@ key_console
Definition: client.h:200
refexport_t::DrawGetPicSize
void(* DrawGetPicSize)(int *w, int *h, char *name)
Definition: ref.h:166
NULL
#define NULL
Definition: q_shared.h:67
client_state_t::frame
frame_t frame
Definition: client.h:116
refexport_t::CinematicSetPalette
void(* CinematicSetPalette)(const unsigned char *palette)
Definition: ref.h:180
graphsamp_t::color
int color
Definition: cl_scrn.c:126
MSG_WriteByte
void MSG_WriteByte(sizebuf_t *sb, int c)
Definition: common.c:303
Miniaudio_Stop
void Miniaudio_Stop(void)
Definition: snd_miniaudio.c:287
current
static int current
Definition: cl_scrn.c:129
Con_ClearNotify
void Con_ClearNotify(void)
Definition: console.c:208
refexport_t::DrawPic
void(* DrawPic)(int x, int y, char *name)
Definition: ref.h:167
client_state_t::time
int time
Definition: client.h:127
name
cvar_t * name
Definition: cl_main.c:79
client_state_t::cinematicpalette_active
qboolean cinematicpalette_active
Definition: client.h:148
s
static fixed16_t s
Definition: r_scan.c:30
cl_stereo
cvar_t * cl_stereo
Definition: cl_main.c:37
SCR_AddDirtyPoint
void SCR_AddDirtyPoint(int x, int y)
Definition: cl_scrn.c:669
y
GLint y
Definition: qgl_win.c:115
re
refexport_t re
Definition: vid_dll.c:32
frame_t::playerstate
player_state_t playerstate
Definition: client.h:50
cinematics_t::hnodes1
int * hnodes1
Definition: cl_cin.c:41
graphsamp_t::value
float value
Definition: cl_scrn.c:125
dirty_t::y1
int y1
Definition: cl_scrn.c:69
refexport_t::BeginFrame
void(* BeginFrame)(float camera_separation)
Definition: ref.h:181
crosshair_pic
char crosshair_pic[MAX_QPATH]
Definition: cl_scrn.c:74
refexport_t::EndWorldRenderpass
void(* EndWorldRenderpass)(void)
Definition: ref.h:183
Z_Free
void Z_Free(void *ptr)
Definition: common.c:1122
client_state_t::sound_prepped
qboolean sound_prepped
Definition: client.h:99
client_static_t::state
connstate_t state
Definition: client.h:204
SCR_FinishCinematic
void SCR_FinishCinematic(void)
Definition: cl_cin.c:198
cinematics_t::s_rate
int s_rate
Definition: cl_cin.c:31
cinematics_t::restart_sound
qboolean restart_sound
Definition: cl_cin.c:30
SCR_CalcVrect
static void SCR_CalcVrect(void)
Definition: cl_scrn.c:321
cinematics_t::pic_pending
byte * pic_pending
Definition: cl_cin.c:38
client_static_t::frametime
float frametime
Definition: client.h:209
scr_conlines
float scr_conlines
Definition: cl_scrn.c:40
S_StopAllSounds
void S_StopAllSounds(void)
Definition: snd_dma.c:785
values
static graphsamp_t values[1024]
Definition: cl_scrn.c:130
client_static_t::key_dest
keydest_t key_dest
Definition: client.h:205
scr_graphshift
cvar_t * scr_graphshift
Definition: cl_scrn.c:61
client_state_t::cinematic_file
FILE * cinematic_file
Definition: client.h:144
SCR_Sky_f
void SCR_Sky_f(void)
Definition: cl_scrn.c:373
w
GLdouble GLdouble GLdouble w
Definition: qgl_win.c:291
Com_Printf
void Com_Printf(char *fmt,...)
Definition: common.c:104
M_Draw
void M_Draw(void)
Definition: menu.c:3999
developer
cvar_t * developer
Definition: common.c:42
Sys_Milliseconds
int Sys_Milliseconds(void)
Definition: q_shwin.c:120
clc_stringcmd
@ clc_stringcmd
Definition: qcommon.h:260
cls
client_static_t cls
Definition: cl_main.c:90
scr_draw_loading
int scr_draw_loading
Definition: cl_scrn.c:44
dirty_t::x2
int x2
Definition: cl_scrn.c:69
cl
client_state_t cl
Definition: cl_main.c:91
scr_viewsize
cvar_t * scr_viewsize
Definition: cl_scrn.c:49
crosshair_width
int crosshair_width
Definition: cl_scrn.c:75
Com_sprintf
void Com_sprintf(char *dest, int size, char *fmt,...)
Definition: q_shared.c:1223
scr_showpause
cvar_t * scr_showpause
Definition: cl_scrn.c:53
player_state_t::stats
short stats[MAX_STATS]
Definition: q_shared.h:1196
console_t::initialized
qboolean initialized
Definition: console.h:30
SCR_StopCinematic
void SCR_StopCinematic(void)
Definition: cl_cin.c:153
SCR_DrawLoading
void SCR_DrawLoading(void)
Definition: cl_scrn.c:477
client_static_t::netchan
netchan_t netchan
Definition: client.h:224
client_static_t::realtime
int realtime
Definition: client.h:208
Cvar_VariableValue
float Cvar_VariableValue(char *var_name)
Definition: cvar.c:63