mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
r_pos cvar: Dynamic position info, aka r_speeds + viewpos.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1252 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
07b48e4392
commit
5cf0eb9465
6 changed files with 19 additions and 3 deletions
|
@ -142,6 +142,7 @@ The "game" command doesn't execute quake.rc in the new game directory being swit
|
||||||
<item> Experimental windowed fullscreen mode available with vid_desktopfullscreen 1 (only in SDL2 builds, takes effect upon entering fullscreen mode the next time.)
|
<item> Experimental windowed fullscreen mode available with vid_desktopfullscreen 1 (only in SDL2 builds, takes effect upon entering fullscreen mode the next time.)
|
||||||
<item> Silence "exceeded standard limit" messages unless developer cvar is >= 1.
|
<item> Silence "exceeded standard limit" messages unless developer cvar is >= 1.
|
||||||
<item> Some spam moved from developer 1 to 2: "can't find tga/lit/ent", "trying to load ent", "bad chunk length", "meshing", "PR_AlocStringSlots: realloc'ing"
|
<item> Some spam moved from developer 1 to 2: "can't find tga/lit/ent", "trying to load ent", "bad chunk length", "meshing", "PR_AlocStringSlots: realloc'ing"
|
||||||
|
<item> r_pos command shows player position, aka r_speeds + viewpos.
|
||||||
</itemize>
|
</itemize>
|
||||||
|
|
||||||
<sect2> Code cleanup
|
<sect2> Code cleanup
|
||||||
|
|
|
@ -62,6 +62,7 @@ cvar_t r_norefresh = {"r_norefresh","0",CVAR_NONE};
|
||||||
cvar_t r_drawentities = {"r_drawentities","1",CVAR_NONE};
|
cvar_t r_drawentities = {"r_drawentities","1",CVAR_NONE};
|
||||||
cvar_t r_drawviewmodel = {"r_drawviewmodel","1",CVAR_NONE};
|
cvar_t r_drawviewmodel = {"r_drawviewmodel","1",CVAR_NONE};
|
||||||
cvar_t r_speeds = {"r_speeds","0",CVAR_NONE};
|
cvar_t r_speeds = {"r_speeds","0",CVAR_NONE};
|
||||||
|
cvar_t r_pos = {"r_pos","0",CVAR_NONE};
|
||||||
cvar_t r_fullbright = {"r_fullbright","0",CVAR_NONE};
|
cvar_t r_fullbright = {"r_fullbright","0",CVAR_NONE};
|
||||||
cvar_t r_lightmap = {"r_lightmap","0",CVAR_NONE};
|
cvar_t r_lightmap = {"r_lightmap","0",CVAR_NONE};
|
||||||
cvar_t r_shadows = {"r_shadows","0",CVAR_ARCHIVE};
|
cvar_t r_shadows = {"r_shadows","0",CVAR_ARCHIVE};
|
||||||
|
@ -998,7 +999,15 @@ void R_RenderView (void)
|
||||||
|
|
||||||
//johnfitz -- modified r_speeds output
|
//johnfitz -- modified r_speeds output
|
||||||
time2 = Sys_DoubleTime ();
|
time2 = Sys_DoubleTime ();
|
||||||
if (r_speeds.value == 2)
|
if (r_pos.value)
|
||||||
|
Con_Printf ("x %i y %i z %i (pitch %i yaw %i roll %i)\n",
|
||||||
|
(int)cl_entities[cl.viewentity].origin[0],
|
||||||
|
(int)cl_entities[cl.viewentity].origin[1],
|
||||||
|
(int)cl_entities[cl.viewentity].origin[2],
|
||||||
|
(int)cl.viewangles[PITCH],
|
||||||
|
(int)cl.viewangles[YAW],
|
||||||
|
(int)cl.viewangles[ROLL]);
|
||||||
|
else if (r_speeds.value == 2)
|
||||||
Con_Printf ("%3i ms %4i/%4i wpoly %4i/%4i epoly %3i lmap %4i/%4i sky %1.1f mtex\n",
|
Con_Printf ("%3i ms %4i/%4i wpoly %4i/%4i epoly %3i lmap %4i/%4i sky %1.1f mtex\n",
|
||||||
(int)((time2-time1)*1000),
|
(int)((time2-time1)*1000),
|
||||||
rs_brushpolys,
|
rs_brushpolys,
|
||||||
|
|
|
@ -191,6 +191,7 @@ void R_Init (void)
|
||||||
Cvar_RegisterVariable (&r_novis);
|
Cvar_RegisterVariable (&r_novis);
|
||||||
Cvar_SetCallback (&r_novis, R_VisChanged);
|
Cvar_SetCallback (&r_novis, R_VisChanged);
|
||||||
Cvar_RegisterVariable (&r_speeds);
|
Cvar_RegisterVariable (&r_speeds);
|
||||||
|
Cvar_RegisterVariable (&r_pos);
|
||||||
|
|
||||||
Cvar_RegisterVariable (&gl_finish);
|
Cvar_RegisterVariable (&gl_finish);
|
||||||
Cvar_RegisterVariable (&gl_clear);
|
Cvar_RegisterVariable (&gl_clear);
|
||||||
|
|
|
@ -127,6 +127,7 @@ extern cvar_t r_drawentities;
|
||||||
extern cvar_t r_drawworld;
|
extern cvar_t r_drawworld;
|
||||||
extern cvar_t r_drawviewmodel;
|
extern cvar_t r_drawviewmodel;
|
||||||
extern cvar_t r_speeds;
|
extern cvar_t r_speeds;
|
||||||
|
extern cvar_t r_pos;
|
||||||
extern cvar_t r_waterwarp;
|
extern cvar_t r_waterwarp;
|
||||||
extern cvar_t r_fullbright;
|
extern cvar_t r_fullbright;
|
||||||
extern cvar_t r_lightmap;
|
extern cvar_t r_lightmap;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||||
<HTML>
|
<HTML>
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.69">
|
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.66">
|
||||||
<TITLE>QuakeSpasm</TITLE>
|
<TITLE>QuakeSpasm</TITLE>
|
||||||
</HEAD>
|
</HEAD>
|
||||||
<BODY>
|
<BODY>
|
||||||
|
@ -110,7 +110,8 @@ sound driver, some graphical niceities, and numerous bug-fixes and other improve
|
||||||
<LI>There is currently no CD Music volume support and SDL2 doesn't support CD audio. cd_sdl.c needs replacing with cd_linux.c, cd_bsd.c etc..</LI>
|
<LI>There is currently no CD Music volume support and SDL2 doesn't support CD audio. cd_sdl.c needs replacing with cd_linux.c, cd_bsd.c etc..</LI>
|
||||||
<LI>In windows, alternative CD drives are accessible by "<B>quakespasm -cddev F</B>" (for example)
|
<LI>In windows, alternative CD drives are accessible by "<B>quakespasm -cddev F</B>" (for example)
|
||||||
</LI>
|
</LI>
|
||||||
<LI>Quakespasm allows loading new games (mods) on the fly with "<B>game</B> <EM>GAMENAME {-quoth/hipnotic/rogue}</EM>"</LI>
|
<LI>Quakespasm allows loading new games (mods) on the fly with "<B>game</B> <EM>GAMENAME {-quoth/hipnotic/rogue}</EM>"
|
||||||
|
</LI>
|
||||||
<LI>Use "<B>quakespasm -condebug</B>" to save console log to "qconsole.log". SDL2 builds no longer generate stdout.txt/stderr.txt.</LI>
|
<LI>Use "<B>quakespasm -condebug</B>" to save console log to "qconsole.log". SDL2 builds no longer generate stdout.txt/stderr.txt.</LI>
|
||||||
</UL>
|
</UL>
|
||||||
</P>
|
</P>
|
||||||
|
@ -235,6 +236,7 @@ these patched libSDL binaries may help.
|
||||||
<LI> Experimental windowed fullscreen mode available with vid_desktopfullscreen 1 (only in SDL2 builds, takes effect upon entering fullscreen mode the next time.)</LI>
|
<LI> Experimental windowed fullscreen mode available with vid_desktopfullscreen 1 (only in SDL2 builds, takes effect upon entering fullscreen mode the next time.)</LI>
|
||||||
<LI> Silence "exceeded standard limit" messages unless developer cvar is >= 1.</LI>
|
<LI> Silence "exceeded standard limit" messages unless developer cvar is >= 1.</LI>
|
||||||
<LI> Some spam moved from developer 1 to 2: "can't find tga/lit/ent", "trying to load ent", "bad chunk length", "meshing", "PR_AlocStringSlots: realloc'ing"</LI>
|
<LI> Some spam moved from developer 1 to 2: "can't find tga/lit/ent", "trying to load ent", "bad chunk length", "meshing", "PR_AlocStringSlots: realloc'ing"</LI>
|
||||||
|
<LI> r_pos command shows player position, aka r_speeds + viewpos.</LI>
|
||||||
</UL>
|
</UL>
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
|
|
|
@ -254,6 +254,8 @@
|
||||||
"trying to load ent", "bad chunk length", "meshing",
|
"trying to load ent", "bad chunk length", "meshing",
|
||||||
"PR_AlocStringSlots: realloc'ing"
|
"PR_AlocStringSlots: realloc'ing"
|
||||||
|
|
||||||
|
o r_pos command shows player position, aka r_speeds + viewpos.
|
||||||
|
|
||||||
6.1.5. Code cleanup
|
6.1.5. Code cleanup
|
||||||
|
|
||||||
o Clean up IDE project files to build on fresh systems.
|
o Clean up IDE project files to build on fresh systems.
|
||||||
|
|
Loading…
Reference in a new issue