icculus quake2 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 675 of file cl_scrn.c.

676 {
677  if (x < scr_dirty.x1)
678  scr_dirty.x1 = x;
679  if (x > scr_dirty.x2)
680  scr_dirty.x2 = x;
681  if (y < scr_dirty.y1)
682  scr_dirty.y1 = y;
683  if (y > scr_dirty.y2)
684  scr_dirty.y2 = y;
685 }

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 571 of file cl_scrn.c.

572 {
573  S_StopAllSounds ();
574  cl.sound_prepped = false; // don't play ambients
575  CDAudio_Stop ();
576  if (cls.disable_screen)
577  return;
578  if (developer->value)
579  return;
580  if (cls.state == ca_disconnected)
581  return; // if at console, don't bring up the plaque
582  if (cls.key_dest == key_console)
583  return;
584  if (cl.cinematictime > 0)
585  scr_draw_loading = 2; // clear to balack first
586  else
587  scr_draw_loading = 1;
588  SCR_UpdateScreen ();
591 }

Referenced by SCR_Loading_f().

◆ SCR_CenterPrint()

void SCR_CenterPrint ( char *  str)

Definition at line 203 of file cl_scrn.c.

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

Referenced by CL_ParseServerMessage().

◆ SCR_DebugGraph()

void SCR_DebugGraph ( float  value,
int  color 
)

Definition at line 139 of file cl_scrn.c.

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

◆ SCR_DirtyScreen()

void SCR_DirtyScreen ( void  )

Definition at line 687 of file cl_scrn.c.

688 {
689  SCR_AddDirtyPoint (0, 0);
691 }

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

◆ 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 598 of file cl_scrn.c.

599 {
600  cls.disable_screen = 0;
601  Con_ClearNotify ();
602 }

◆ 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 419 of file cl_scrn.c.

420 {
421  scr_viewsize = Cvar_Get ("viewsize", "100", CVAR_ARCHIVE);
422  scr_conspeed = Cvar_Get ("scr_conspeed", "3", 0);
423  scr_showturtle = Cvar_Get ("scr_showturtle", "0", 0);
424  scr_showpause = Cvar_Get ("scr_showpause", "1", 0);
425  scr_centertime = Cvar_Get ("scr_centertime", "2.5", 0);
426  scr_printspeed = Cvar_Get ("scr_printspeed", "8", 0);
427  scr_netgraph = Cvar_Get ("netgraph", "0", 0);
428  scr_timegraph = Cvar_Get ("timegraph", "0", 0);
429  scr_debuggraph = Cvar_Get ("debuggraph", "0", 0);
430  scr_graphheight = Cvar_Get ("graphheight", "32", 0);
431  scr_graphscale = Cvar_Get ("graphscale", "1", 0);
432  scr_graphshift = Cvar_Get ("graphshift", "0", 0);
433  scr_drawall = Cvar_Get ("scr_drawall", "0", 0);
434 
435 //
436 // register our commands
437 //
438  Cmd_AddCommand ("timerefresh",SCR_TimeRefresh_f);
439  Cmd_AddCommand ("loading",SCR_Loading_f);
440  Cmd_AddCommand ("sizeup",SCR_SizeUp_f);
441  Cmd_AddCommand ("sizedown",SCR_SizeDown_f);
442  Cmd_AddCommand ("sky",SCR_Sky_f);
443 
444  scr_initialized = true;
445 }

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 
586  cl.cinematicframe = 0;
587  dot = strstr (arg, ".");
588  if (dot && !strcmp (dot, ".pcx"))
589  { // static pcx image
590  Com_sprintf (name, sizeof(name), "pics/%s", arg);
591  SCR_LoadPCX (name, &cin.pic, &palette, &cin.width, &cin.height);
592  cl.cinematicframe = -1;
593  cl.cinematictime = 1;
595  cls.state = ca_active;
596  if (!cin.pic)
597  {
598  Com_Printf ("%s not found.\n", name);
599  cl.cinematictime = 0;
600  }
601  else
602  {
603  memcpy (cl.cinematicpalette, palette, sizeof(cl.cinematicpalette));
604  Z_Free (palette);
605  }
606  return;
607  }
608 
609  Com_sprintf (name, sizeof(name), "video/%s", arg);
611  if (!cl.cinematic_file)
612  {
613 // Com_Error (ERR_DROP, "Cinematic %s not found.\n", name);
615  cl.cinematictime = 0; // done
616  return;
617  }
618 
620 
621  cls.state = ca_active;
622 
627 
634 
635  Huff1TableInit ();
636 
637  // switch up to 22 khz sound if necessary
638  old_khz = Cvar_VariableValue ("s_khz");
639  if (old_khz != cin.s_rate/1000)
640  {
641  cin.restart_sound = true;
642  Cvar_SetValue ("s_khz", cin.s_rate/1000);
643  CL_Snd_Restart_f ();
644  Cvar_SetValue ("s_khz", old_khz);
645  }
646 
647  cl.cinematicframe = 0;
650 }

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 507 of file cl_scrn.c.

508 {
509 // decide on the height of the console
510  if (cls.key_dest == key_console)
511  scr_conlines = 0.5; // half screen
512  else
513  scr_conlines = 0; // none visible
514 
516  {
520 
521  }
522  else if (scr_conlines > scr_con_current)
523  {
527  }
528 
529 }

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 928 of file cl_scrn.c.

929 {
930  int i, j;
931 
932  for (i=0 ; i<2 ; i++)
933  for (j=0 ; j<11 ; j++)
934  re.RegisterPic (sb_nums[i][j]);
935 
936  if (crosshair->value)
937  {
938 #ifdef QMAX
939  if (crosshair->value > 9)
940  crosshair->value = 9;
941 #else
942  if (crosshair->value > 3 || crosshair->value < 0)
943  crosshair->value = 3;
944 #endif
945  Com_sprintf (crosshair_pic, sizeof(crosshair_pic), "ch%i", (int)(crosshair->value));
947  if (!crosshair_width)
948  crosshair_pic[0] = 0;
949 
950  }
951 }

Referenced by CL_PrepRefresh(), and SCR_DrawCrosshair().

◆ SCR_UpdateScreen()

void SCR_UpdateScreen ( void  )

Definition at line 1285 of file cl_scrn.c.

1286 {
1287  int numframes;
1288  int i;
1289  float separation[2] = { 0, 0 };
1290 
1291  // if the screen is disabled (loading plaque is up, or vid mode changing)
1292  // do nothing at all
1293  if (cls.disable_screen)
1294  {
1295  if (Sys_Milliseconds() - cls.disable_screen > 120000)
1296  {
1297  cls.disable_screen = 0;
1298  Com_Printf ("Loading plaque timed out.\n");
1299  }
1300  return;
1301  }
1302 
1303  if (!scr_initialized || !con.initialized)
1304  return; // not initialized yet
1305 
1306  /*
1307  ** range check cl_camera_separation so we don't inadvertently fry someone's
1308  ** brain
1309  */
1310 #ifdef REDBLUE
1311  if ( cl_stereo_separation->value > 10.0 )
1312  Cvar_SetValue( "cl_stereo_separation", 10.0 );
1313 #else
1314  if ( cl_stereo_separation->value > 1.0 )
1315  Cvar_SetValue( "cl_stereo_separation", 1.0 );
1316 #endif
1317  else if ( cl_stereo_separation->value < 0 )
1318  Cvar_SetValue( "cl_stereo_separation", 0.0 );
1319 
1320 #ifdef REDBLUE
1321  if ( !cl_stereo->value )
1322  Cvar_SetValue( "cl_stereo", 1 );
1323 
1324  numframes = 2;
1325  separation[0] = -cl_stereo_separation->value / 2.0;
1326  separation[1] = cl_stereo_separation->value / 2.0;
1327 #else
1328  if ( cl_stereo->value )
1329  {
1330  numframes = 2;
1331  separation[0] = -cl_stereo_separation->value / 2;
1332  separation[1] = cl_stereo_separation->value / 2;
1333  }
1334  else
1335  {
1336  separation[0] = 0;
1337  separation[1] = 0;
1338  numframes = 1;
1339  }
1340 #endif
1341  for ( i = 0; i < numframes; i++ )
1342  {
1343  re.BeginFrame( separation[i] );
1344 
1345  if (scr_draw_loading == 2)
1346  { // loading plaque over black screen
1347  int w, h;
1348 
1350  scr_draw_loading = false;
1351  re.DrawGetPicSize (&w, &h, "loading");
1352  re.DrawPic ((viddef.width-w)/2, (viddef.height-h)/2, "loading");
1353  // re.EndFrame();
1354  // return;
1355  }
1356  // if a cinematic is supposed to be running, handle menus
1357  // and console specially
1358  else if (cl.cinematictime > 0)
1359  {
1360  if (cls.key_dest == key_menu)
1361  {
1363  {
1365  cl.cinematicpalette_active = false;
1366  }
1367  M_Draw ();
1368  // re.EndFrame();
1369  // return;
1370  }
1371  else if (cls.key_dest == key_console)
1372  {
1374  {
1376  cl.cinematicpalette_active = false;
1377  }
1378  SCR_DrawConsole ();
1379  // re.EndFrame();
1380  // return;
1381  }
1382  else
1383  {
1385  // re.EndFrame();
1386  // return;
1387  }
1388  }
1389  else
1390  {
1391 
1392  // make sure the game palette is active
1394  {
1396  cl.cinematicpalette_active = false;
1397  }
1398 
1399  // do 3D refresh drawing, and then update the screen
1400  SCR_CalcVrect ();
1401 
1402  // clear any dirty part of the background
1403  SCR_TileClear ();
1404 
1405  V_RenderView ( separation[i] );
1406 
1407  SCR_DrawStats ();
1409  SCR_DrawLayout ();
1411  CL_DrawInventory ();
1412 
1413  SCR_DrawNet ();
1415 
1416  // FPS counter hack
1417  // http://www.quakesrc.org/?Page=tutorials&What=./tutorials/Quake2/misc/fps.txt
1418  if (cl_drawfps->value) {
1419  char s[8];
1420  sprintf(s,"%3.0ffps", 1/cls.frametime);
1421  DrawString(viddef.width-64,0,s);
1422  }
1423 
1424  if (scr_timegraph->value)
1425  SCR_DebugGraph (cls.frametime*300, 0);
1426 
1428  SCR_DrawDebugGraph ();
1429 
1430  SCR_DrawPause ();
1431 
1432  SCR_DrawConsole ();
1433 
1434  M_Draw ();
1435 
1436  SCR_DrawLoading ();
1437  }
1438  }
1439  re.EndFrame();
1440 }

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 69 of file cl_scrn.c.

Referenced by SCR_DrawCrosshair(), and SCR_TouchPics().

◆ crosshair_width

int crosshair_width

Definition at line 70 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 37 of file cl_scrn.c.

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

◆ scr_conlines

float scr_conlines

Definition at line 38 of file cl_scrn.c.

Referenced by SCR_RunConsole().

◆ scr_viewsize

cvar_t* scr_viewsize

Definition at line 47 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
edict_s::s
entity_state_t s
Definition: g_local.h:964
CDAudio_Stop
void CDAudio_Stop(void)
FS_Read
void FS_Read(void *buffer, int len, FILE *f)
Definition: files.c:346
SCR_EndLoadingPlaque
void SCR_EndLoadingPlaque(void)
Definition: cl_scrn.c:598
scr_graphheight
cvar_t * scr_graphheight
Definition: cl_scrn.c:57
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:189
client_state_t::servercount
int servercount
Definition: client.h:174
SCR_DrawConsole
void SCR_DrawConsole(void)
Definition: cl_scrn.c:536
sb_nums
char * sb_nums[2][11]
Definition: cl_scrn.c:788
scr_printspeed
cvar_t * scr_printspeed
Definition: cl_scrn.c:52
scr_dirty
dirty_t scr_dirty
Definition: cl_scrn.c:67
Huff1TableInit
void Huff1TableInit(void)
Definition: cl_cin.c:247
SCR_CheckDrawCenterString
void SCR_CheckDrawCenterString(void)
Definition: cl_scrn.c:308
client_static_t::disable_screen
float disable_screen
Definition: client.h:232
scr_timegraph
cvar_t * scr_timegraph
Definition: cl_scrn.c:55
ca_disconnected
@ ca_disconnected
Definition: client.h:206
SCR_SizeDown_f
void SCR_SizeDown_f(void)
Definition: cl_scrn.c:370
scr_centertime
cvar_t * scr_centertime
Definition: cl_scrn.c:49
scr_showturtle
cvar_t * scr_showturtle
Definition: cl_scrn.c:50
refexport_t::DrawStretchRaw
void(* DrawStretchRaw)(int x, int y, int w, int h, int cols, int rows, byte *data)
Definition: ref.h:202
SCR_DrawDebugGraph
void SCR_DrawDebugGraph(void)
Definition: cl_scrn.c:151
netchan_t::message
sizebuf_t message
Definition: qcommon.h:600
SCR_TimeRefresh_f
void SCR_TimeRefresh_f(void)
Definition: cl_scrn.c:632
refexport_t::RegisterPic
struct image_s *(* RegisterPic)(char *name)
Definition: ref.h:178
scr_conspeed
cvar_t * scr_conspeed
Definition: cl_scrn.c:48
cinematics_t::s_channels
int s_channels
Definition: cl_cin.c:33
x
GLint GLenum GLint x
Definition: qgl_win.c:116
viddef_t::width
int width
Definition: vid.h:29
client_static_t::disable_servercount
int disable_servercount
Definition: client.h:235
i
int i
Definition: q_shared.c:305
scr_con_current
float scr_con_current
Definition: cl_scrn.c:37
SCR_DrawPause
void SCR_DrawPause(void)
Definition: cl_scrn.c:467
V_RenderView
void V_RenderView(float stereo_separation)
Definition: cl_view.c:516
ca_active
@ ca_active
Definition: client.h:209
scr_debuggraph
cvar_t * scr_debuggraph
Definition: cl_scrn.c:56
cl_drawfps
cvar_t * cl_drawfps
Definition: cl_main.c:49
viddef_t::height
int height
Definition: vid.h:29
client_state_t::cinematictime
int cinematictime
Definition: client.h:165
CL_DrawInventory
void CL_DrawInventory(void)
Definition: cl_inv.c:70
width
GLint GLsizei width
Definition: qgl_win.c:115
SCR_DrawStats
void SCR_DrawStats(void)
Definition: cl_scrn.c:1254
scr_drawall
cvar_t * scr_drawall
Definition: cl_scrn.c:60
SCR_BeginLoadingPlaque
void SCR_BeginLoadingPlaque(void)
Definition: cl_scrn.c:571
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:220
DrawString
void DrawString(int x, int y, char *s)
Definition: console.c:35
scr_centertime_off
float scr_centertime_off
Definition: cl_scrn.c:191
scr_graphscale
cvar_t * scr_graphscale
Definition: cl_scrn.c:58
viddef
viddef_t viddef
Definition: vid_dll.c:49
refexport_t::EndFrame
void(* EndFrame)(void)
Definition: ref.h:209
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:192
client_state_t::cinematicframe
int cinematicframe
Definition: client.h:166
SCR_UpdateScreen
void SCR_UpdateScreen(void)
Definition: cl_scrn.c:1285
SCR_SizeUp_f
void SCR_SizeUp_f(void)
Definition: cl_scrn.c:357
SZ_Print
void SZ_Print(sizebuf_t *buf, char *data)
Definition: common.c:945
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:70
cinematics_t::height
int height
Definition: cl_cin.c:36
SCR_DrawLayout
void SCR_DrawLayout(void)
Definition: cl_scrn.c:1268
CL_Snd_Restart_f
void CL_Snd_Restart_f(void)
Definition: cl_main.c:1119
scr_centertime_start
float scr_centertime_start
Definition: cl_scrn.c:190
LittleLong
int LittleLong(int l)
Definition: q_shared.c:948
scr_initialized
qboolean scr_initialized
Definition: cl_scrn.c:40
cinematics_t::s_width
int s_width
Definition: cl_cin.c:32
dirty_t::x1
int x1
Definition: cl_scrn.c:64
SCR_DrawCinematic
qboolean SCR_DrawCinematic(void)
Definition: cl_cin.c:541
STAT_LAYOUTS
#define STAT_LAYOUTS
Definition: cl_scrn.c:1266
Cmd_AddCommand
void Cmd_AddCommand(char *cmd_name, xcommand_t function)
Definition: cmd.c:691
key_game
@ key_game
Definition: client.h:220
SCR_TileClear
void SCR_TileClear(void)
Definition: cl_scrn.c:700
SCR_ReadNextFrame
byte * SCR_ReadNextFrame(void)
Definition: cl_cin.c:427
CVAR_ARCHIVE
#define CVAR_ARCHIVE
Definition: q_shared.h:309
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:609
scr_netgraph
cvar_t * scr_netgraph
Definition: cl_scrn.c:54
cinematics_t::width
int width
Definition: cl_cin.c:35
cvar_s::value
float value
Definition: q_shared.h:324
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:139
MAX_OSPATH
#define MAX_OSPATH
Definition: q_shared.h:74
dirty_t::y2
int y2
Definition: cl_scrn.c:64
SCR_DrawNet
void SCR_DrawNet(void)
Definition: cl_scrn.c:453
con
console_t con
Definition: console.c:24
key_console
@ key_console
Definition: client.h:220
refexport_t::DrawGetPicSize
void(* DrawGetPicSize)(int *w, int *h, char *name)
Definition: ref.h:195
NULL
#define NULL
Definition: q_shared.h:60
client_state_t::frame
frame_t frame
Definition: client.h:136
refexport_t::CinematicSetPalette
void(* CinematicSetPalette)(const unsigned char *palette)
Definition: ref.h:207
graphsamp_t::color
int color
Definition: cl_scrn.c:128
MSG_WriteByte
void MSG_WriteByte(sizebuf_t *sb, int c)
Definition: common.c:322
client_state_t::cinematicpalette
unsigned char cinematicpalette[768]
Definition: client.h:167
current
static int current
Definition: cl_scrn.c:131
Con_ClearNotify
void Con_ClearNotify(void)
Definition: console.c:215
refexport_t::DrawPic
void(* DrawPic)(int x, int y, char *name)
Definition: ref.h:196
client_state_t::time
int time
Definition: client.h:147
name
cvar_t * name
Definition: cl_main.c:94
client_state_t::cinematicpalette_active
qboolean cinematicpalette_active
Definition: client.h:168
cl_stereo
cvar_t * cl_stereo
Definition: cl_main.c:37
SCR_AddDirtyPoint
void SCR_AddDirtyPoint(int x, int y)
Definition: cl_scrn.c:675
y
GLint y
Definition: qgl_win.c:115
re
refexport_t re
Definition: vid_dll.c:31
frame_t::playerstate
player_state_t playerstate
Definition: client.h:70
cinematics_t::hnodes1
int * hnodes1
Definition: cl_cin.c:41
graphsamp_t::value
float value
Definition: cl_scrn.c:127
dirty_t::y1
int y1
Definition: cl_scrn.c:64
refexport_t::BeginFrame
void(* BeginFrame)(float camera_separation)
Definition: ref.h:208
crosshair_pic
char crosshair_pic[MAX_QPATH]
Definition: cl_scrn.c:69
Z_Free
void Z_Free(void *ptr)
Definition: common.c:1141
client_state_t::sound_prepped
qboolean sound_prepped
Definition: client.h:119
client_static_t::state
connstate_t state
Definition: client.h:224
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:327
cinematics_t::pic_pending
byte * pic_pending
Definition: cl_cin.c:38
client_static_t::frametime
float frametime
Definition: client.h:229
scr_conlines
float scr_conlines
Definition: cl_scrn.c:38
S_StopAllSounds
void S_StopAllSounds(void)
Definition: snd_dma.c:795
values
static graphsamp_t values[1024]
Definition: cl_scrn.c:132
client_static_t::key_dest
keydest_t key_dest
Definition: client.h:225
scr_graphshift
cvar_t * scr_graphshift
Definition: cl_scrn.c:59
client_state_t::cinematic_file
FILE * cinematic_file
Definition: client.h:164
SCR_Sky_f
void SCR_Sky_f(void)
Definition: cl_scrn.c:382
w
GLdouble GLdouble GLdouble w
Definition: qgl_win.c:291
Com_Printf
void Com_Printf(char *fmt,...)
Definition: common.c:102
M_Draw
void M_Draw(void)
Definition: menu.c:4045
developer
cvar_t * developer
Definition: common.c:41
Sys_Milliseconds
int Sys_Milliseconds(void)
Definition: q_shwin.c:120
clc_stringcmd
@ clc_stringcmd
Definition: qcommon.h:243
cls
client_static_t cls
Definition: cl_main.c:105
scr_draw_loading
int scr_draw_loading
Definition: cl_scrn.c:42
dirty_t::x2
int x2
Definition: cl_scrn.c:64
cl
client_state_t cl
Definition: cl_main.c:106
scr_viewsize
cvar_t * scr_viewsize
Definition: cl_scrn.c:47
crosshair_width
int crosshair_width
Definition: cl_scrn.c:70
Com_sprintf
void Com_sprintf(char *dest, int size, char *fmt,...)
Definition: q_shared.c:1236
scr_showpause
cvar_t * scr_showpause
Definition: cl_scrn.c:51
player_state_t::stats
short stats[MAX_STATS]
Definition: q_shared.h:1220
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:486
client_static_t::netchan
netchan_t netchan
Definition: client.h:244
client_static_t::realtime
int realtime
Definition: client.h:228
Cvar_VariableValue
float Cvar_VariableValue(char *var_name)
Definition: cvar.c:63