#include "ui_local.h"
Include dependency graph for ui_video.c:

Go to the source code of this file.
|
|
Definition at line 38 of file ui_video.c. |
|
|
Definition at line 39 of file ui_video.c. |
|
|
Definition at line 36 of file ui_video.c. |
|
|
Definition at line 37 of file ui_video.c. |
|
|
Definition at line 238 of file ui_video.c. Referenced by GraphicsOptions_Cache(). |
|
|
Definition at line 239 of file ui_video.c. Referenced by GraphicsOptions_Cache(). |
|
|
Definition at line 236 of file ui_video.c. Referenced by GraphicsOptions_Cache(). |
|
|
Definition at line 237 of file ui_video.c. Referenced by GraphicsOptions_Cache(). |
|
|
Definition at line 234 of file ui_video.c. Referenced by GraphicsOptions_Cache(). |
|
|
Definition at line 235 of file ui_video.c. Referenced by GraphicsOptions_Cache(). |
|
|
Definition at line 248 of file ui_video.c. Referenced by GraphicsOptions_Event(). |
|
|
Definition at line 254 of file ui_video.c. |
|
|
Definition at line 252 of file ui_video.c. Referenced by GraphicsOptions_Event(). |
|
|
Definition at line 50 of file ui_video.c. Referenced by DriverInfo_Event(). |
|
|
Definition at line 249 of file ui_video.c. |
|
|
Definition at line 253 of file ui_video.c. |
|
|
Definition at line 250 of file ui_video.c. |
|
|
Definition at line 251 of file ui_video.c. Referenced by GraphicsOptions_Event(). |
|
|
Definition at line 256 of file ui_video.c. |
|
|
Definition at line 255 of file ui_video.c. |
|
|
Definition at line 323 of file ui_video.c. |
|
|
Definition at line 122 of file ui_video.c. References driverinfo_artlist, i, and trap_R_RegisterShaderNoMip(). 00123 {
00124 int i;
00125
00126 // touch all our pics
00127 for (i=0; ;i++)
00128 {
00129 if (!driverinfo_artlist[i])
00130 break;
00131 trap_R_RegisterShaderNoMip(driverinfo_artlist[i]);
00132 }
00133 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 71 of file ui_video.c. References ID_DRIVERINFOBACK, and UI_PopMenu(). 00072 {
00073 if (event != QM_ACTIVATED)
00074 return;
00075
00076 switch (((menucommon_s*)ptr)->id)
00077 {
00078 case ID_DRIVERINFOBACK:
00079 UI_PopMenu();
00080 break;
00081 }
00082 }
|
Here is the call graph for this function:

|
|
Definition at line 89 of file ui_video.c. References color_red, glconfig_t::colorBits, glconfig_t::depthBits, uiStatic_t::glconfig, i, driverinfo_t::menu, Menu_Draw(), driverinfo_t::numstrings, glconfig_t::renderer_string, s_driverinfo, glconfig_t::stencilBits, driverinfo_t::strings, text_color_normal, UI_CENTER, UI_DrawString(), UI_LEFT, UI_RIGHT, UI_SMALLFONT, uis, va(), glconfig_t::vendor_string, glconfig_t::version_string, and y. 00090 {
00091 int i;
00092 int y;
00093
00094 Menu_Draw( &s_driverinfo.menu );
00095
00096 UI_DrawString( 320, 80, "VENDOR", UI_CENTER|UI_SMALLFONT, color_red );
00097 UI_DrawString( 320, 152, "PIXELFORMAT", UI_CENTER|UI_SMALLFONT, color_red );
00098 UI_DrawString( 320, 192, "EXTENSIONS", UI_CENTER|UI_SMALLFONT, color_red );
00099
00100 UI_DrawString( 320, 80+16, uis.glconfig.vendor_string, UI_CENTER|UI_SMALLFONT, text_color_normal );
00101 UI_DrawString( 320, 96+16, uis.glconfig.version_string, UI_CENTER|UI_SMALLFONT, text_color_normal );
00102 UI_DrawString( 320, 112+16, uis.glconfig.renderer_string, UI_CENTER|UI_SMALLFONT, text_color_normal );
00103 UI_DrawString( 320, 152+16, va ("color(%d-bits) Z(%d-bits) stencil(%d-bits)", uis.glconfig.colorBits, uis.glconfig.depthBits, uis.glconfig.stencilBits), UI_CENTER|UI_SMALLFONT, text_color_normal );
00104
00105 // double column
00106 y = 192+16;
00107 for (i=0; i<s_driverinfo.numstrings/2; i++) {
00108 UI_DrawString( 320-4, y, s_driverinfo.strings[i*2], UI_RIGHT|UI_SMALLFONT, text_color_normal );
00109 UI_DrawString( 320+4, y, s_driverinfo.strings[i*2+1], UI_LEFT|UI_SMALLFONT, text_color_normal );
00110 y += SMALLCHAR_HEIGHT;
00111 }
00112
00113 if (s_driverinfo.numstrings & 1)
00114 UI_DrawString( 320, y, s_driverinfo.strings[s_driverinfo.numstrings-1], UI_CENTER|UI_SMALLFONT, text_color_normal );
00115 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 466 of file ui_video.c. References graphicsoptions_t::allow_extensions, graphicsoptions_t::colordepth, menuslider_s::curvalue, menulist_s::curvalue, graphicsoptions_t::driver, EXEC_APPEND, graphicsoptions_t::filter, graphicsoptions_t::fs, graphicsoptions_t::geometry, graphicsoptions_t::lighting, graphicsoptions_t::mode, s_drivers, s_graphicsoptions, graphicsoptions_t::texturebits, graphicsoptions_t::tq, trap_Cmd_ExecuteText(), trap_Cvar_Set(), and trap_Cvar_SetValue(). 00467 {
00468 if (notification != QM_ACTIVATED)
00469 return;
00470
00471 switch ( s_graphicsoptions.texturebits.curvalue )
00472 {
00473 case 0:
00474 trap_Cvar_SetValue( "r_texturebits", 0 );
00475 break;
00476 case 1:
00477 trap_Cvar_SetValue( "r_texturebits", 16 );
00478 break;
00479 case 2:
00480 trap_Cvar_SetValue( "r_texturebits", 32 );
00481 break;
00482 }
00483 trap_Cvar_SetValue( "r_picmip", 3 - s_graphicsoptions.tq.curvalue );
00484 trap_Cvar_SetValue( "r_allowExtensions", s_graphicsoptions.allow_extensions.curvalue );
00485 trap_Cvar_SetValue( "r_mode", s_graphicsoptions.mode.curvalue );
00486 trap_Cvar_SetValue( "r_fullscreen", s_graphicsoptions.fs.curvalue );
00487 trap_Cvar_Set( "r_glDriver", ( char * ) s_drivers[s_graphicsoptions.driver.curvalue] );
00488 switch ( s_graphicsoptions.colordepth.curvalue )
00489 {
00490 case 0:
00491 trap_Cvar_SetValue( "r_colorbits", 0 );
00492 trap_Cvar_SetValue( "r_depthbits", 0 );
00493 trap_Cvar_SetValue( "r_stencilbits", 0 );
00494 break;
00495 case 1:
00496 trap_Cvar_SetValue( "r_colorbits", 16 );
00497 trap_Cvar_SetValue( "r_depthbits", 16 );
00498 trap_Cvar_SetValue( "r_stencilbits", 0 );
00499 break;
00500 case 2:
00501 trap_Cvar_SetValue( "r_colorbits", 32 );
00502 trap_Cvar_SetValue( "r_depthbits", 24 );
00503 break;
00504 }
00505 trap_Cvar_SetValue( "r_vertexLight", s_graphicsoptions.lighting.curvalue );
00506
00507 if ( s_graphicsoptions.geometry.curvalue == 2 )
00508 {
00509 trap_Cvar_SetValue( "r_lodBias", 0 );
00510 trap_Cvar_SetValue( "r_subdivisions", 4 );
00511 }
00512 else if ( s_graphicsoptions.geometry.curvalue == 1 )
00513 {
00514 trap_Cvar_SetValue( "r_lodBias", 1 );
00515 trap_Cvar_SetValue( "r_subdivisions", 12 );
00516 }
00517 else
00518 {
00519 trap_Cvar_SetValue( "r_lodBias", 1 );
00520 trap_Cvar_SetValue( "r_subdivisions", 20 );
00521 }
00522
00523 if ( s_graphicsoptions.filter.curvalue )
00524 {
00525 trap_Cvar_Set( "r_textureMode", "GL_LINEAR_MIPMAP_LINEAR" );
00526 }
00527 else
00528 {
00529 trap_Cvar_Set( "r_textureMode", "GL_LINEAR_MIPMAP_NEAREST" );
00530 }
00531
00532 trap_Cmd_ExecuteText( EXEC_APPEND, "vid_restart\n" );
00533 }
|
Here is the call graph for this function:

|
|
Definition at line 1050 of file ui_video.c. References GRAPHICSOPTIONS_ACCEPT0, GRAPHICSOPTIONS_ACCEPT1, GRAPHICSOPTIONS_BACK0, GRAPHICSOPTIONS_BACK1, GRAPHICSOPTIONS_FRAMEL, GRAPHICSOPTIONS_FRAMER, and trap_R_RegisterShaderNoMip(). 01050 {
01051 trap_R_RegisterShaderNoMip( GRAPHICSOPTIONS_FRAMEL );
01052 trap_R_RegisterShaderNoMip( GRAPHICSOPTIONS_FRAMER );
01053 trap_R_RegisterShaderNoMip( GRAPHICSOPTIONS_BACK0 );
01054 trap_R_RegisterShaderNoMip( GRAPHICSOPTIONS_BACK1 );
01055 trap_R_RegisterShaderNoMip( GRAPHICSOPTIONS_ACCEPT0 );
01056 trap_R_RegisterShaderNoMip( GRAPHICSOPTIONS_ACCEPT1 );
01057 }
|
Here is the call graph for this function:

|
|
||||||||||||
Here is the call graph for this function:

|
|
|
Definition at line 619 of file ui_video.c. References GraphicsOptions_UpdateMenuItems(), graphicsoptions_t::menu, Menu_Draw(), and s_graphicsoptions. 00620 {
00621 //APSFIX - rework this
00622 GraphicsOptions_UpdateMenuItems();
00623
00624 Menu_Draw( &s_graphicsoptions.menu );
00625 }
|
Here is the call graph for this function:

|