]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
Changed how polygonbegin guesses if the geometry is 2D or 3D, it now uses a separate...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 15 Apr 2018 23:17:19 +0000 (23:17 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 15 Apr 2018 23:17:19 +0000 (23:17 +0000)
commit9d6f77621de650ffaaecb65a3485d51378632925
treeffd268b7acf4ae974dd3a0b2656f4a408090bb9e
parentc045878e6948f00e52f17c9df6beefa2dfdfd868
Changed how polygonbegin guesses if the geometry is 2D or 3D, it now uses a separate variable rather than relying on r_refdef.draw2dstage.

Reworked DrawQ_* and R_RenderView code to make clear distinctions between 2D and 3D code, this removes a lot of unnecessary calls to DrawQ_FlushUI (including ones that happened in R_RenderView).

Added R_DebugLine which takes a line in world coordinates and adds it as a 2D line in CL_Mesh_UI.

Added r_showparticleedges and r_showspriteedges debugging cvars which make use of R_DebugLine.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12397 d7cf8633-e32d-0410-b094-e92efae38249
12 files changed:
cl_particles.c
cl_screen.c
clvm_cmds.c
csprogs.c
draw.h
gl_draw.c
gl_rmain.c
mvm_cmds.c
progsvm.h
prvm_cmds.c
r_sprites.c
render.h