]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
13 years agobouncegrid now uses high precision 48bpp accumulation array while also
havoc [Tue, 1 Mar 2011 01:18:10 +0000 (01:18 +0000)]
bouncegrid now uses high precision 48bpp accumulation array while also
updating the 32bpp low precision texture, so low particleintensity
values no longer break, and high maxbounces values actually do work,
bouncegrid maxbounces reduced to 3 and particleintensity adjusted,
bouncegrid no longer reallocates the pixel array every update (this
fixed the black flicker bug... odd)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10873 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoonly update r_shadow_bouncegridmatrix when a texture update occurs -
havoc [Mon, 28 Feb 2011 23:46:50 +0000 (23:46 +0000)]
only update r_shadow_bouncegridmatrix when a texture update occurs -
otherwise it can render very weirdly while moving if the updateinterval
is greater than the frametime

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10872 d7cf8633-e32d-0410-b094-e92efae38249

13 years agochanged offsetmapping to use forward step math, greatly improved quality
havoc [Mon, 28 Feb 2011 20:34:51 +0000 (20:34 +0000)]
changed offsetmapping to use forward step math, greatly improved quality
changed HLSL shader offsetmapping to 2 sample to match GLSL

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10871 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoproperly use lseek64 on Linux for files larger than 2GB
havoc [Mon, 28 Feb 2011 19:48:49 +0000 (19:48 +0000)]
properly use lseek64 on Linux for files larger than 2GB
fix pak and pk3 loading to use unsigned int to allow 4GB archives rather
than erroring on files beyond 2GB

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10870 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix compilation on SDL 1.2 again
havoc [Mon, 28 Feb 2011 19:33:00 +0000 (19:33 +0000)]
fix compilation on SDL 1.2 again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10869 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoexperimental touchscreen support, intended for mobile devices, not very playable yet
havoc [Sun, 27 Feb 2011 18:38:25 +0000 (18:38 +0000)]
experimental touchscreen support, intended for mobile devices, not very playable yet
some hacks for keyboard input on ios because SDL 1.3 has some bugs still

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10868 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded support for SDL_Window API but it is disabled by default until SDL
havoc [Sat, 26 Feb 2011 18:02:16 +0000 (18:02 +0000)]
added support for SDL_Window API but it is disabled by default until SDL
1.3 is more mature (this API's mouse input seems to be broken on Linux)
rewrote MapKey to use a switch statement on the actual SDLK_ enum values
rather than a lookup table (the lookup table did not work with SDL 1.3
events because SDLK_ values changed)
added vid_touchscreen cvar as part of mobile device support

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10867 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix a crash with non-power-of-two particle textures
havoc [Sat, 26 Feb 2011 17:55:03 +0000 (17:55 +0000)]
fix a crash with non-power-of-two particle textures

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10866 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoa fix for the gamemode table if someone edits it to have a "" prog_name
havoc [Sat, 26 Feb 2011 17:54:18 +0000 (17:54 +0000)]
a fix for the gamemode table if someone edits it to have a "" prog_name
match string in a position after the first slot

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10865 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoreworked the entire config loading system for the gamedir command
havoc [Fri, 25 Feb 2011 19:05:21 +0000 (19:05 +0000)]
reworked the entire config loading system for the gamedir command
gamedir switch now fully resets command/alias/cvar state
FS_Rescan function now automatically switches gamemode based on
first specified gamedir (mission pack hud, gameplayfix cvars, etc)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10864 d7cf8633-e32d-0410-b094-e92efae38249

13 years agotypo fix
eihrul [Fri, 25 Feb 2011 12:37:49 +0000 (12:37 +0000)]
typo fix

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10863 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoattempted fix for macosx compilation issues
eihrul [Fri, 25 Feb 2011 11:50:01 +0000 (11:50 +0000)]
attempted fix for macosx compilation issues

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10862 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix two compile errors on D3D9
havoc [Thu, 24 Feb 2011 08:36:56 +0000 (08:36 +0000)]
fix two compile errors on D3D9

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10860 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix compile error on D3D9
havoc [Thu, 24 Feb 2011 08:31:48 +0000 (08:31 +0000)]
fix compile error on D3D9

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10859 d7cf8633-e32d-0410-b094-e92efae38249

13 years agouse dynamic eye position-centered bouncegrid when rendering in dynamic
havoc [Thu, 24 Feb 2011 08:02:39 +0000 (08:02 +0000)]
use dynamic eye position-centered bouncegrid when rendering in dynamic
mode, to reduce upload memory usage on large maps (albeit at a cost of
not covering the entire map in some cases)
changed back to specular reflection (true mirror) bouncing of particles
(can be changed with the r_shadow_bouncegrid_bounceanglediffuse cvar)
because it gets rid of some dark corner artifacts

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10858 d7cf8633-e32d-0410-b094-e92efae38249

13 years agooops, forgot to include the shader code for the r_shadow_bouncegrid feature
havoc [Wed, 23 Feb 2011 17:02:03 +0000 (17:02 +0000)]
oops, forgot to include the shader code for the r_shadow_bouncegrid feature

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10857 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded r_shadow_bouncegrid cvar, this feature does realtime global
havoc [Wed, 23 Feb 2011 16:13:24 +0000 (16:13 +0000)]
added r_shadow_bouncegrid cvar, this feature does realtime global
illumination by particle tracing and uploading a new 3D texture every
frame containing the lighting

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10856 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoimplemented r_shadow_particletrace cvar which enables an exceptionally
havoc [Mon, 21 Feb 2011 10:57:49 +0000 (10:57 +0000)]
implemented r_shadow_particletrace cvar which enables an exceptionally
slow realtime global illumination deferred rendering technique,
UNPLAYABLE framerates with this option on, some rendering artifacts,
experimental only

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10854 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoCSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per...
divverent [Sun, 20 Feb 2011 21:32:47 +0000 (21:32 +0000)]
CSQC entity database: keep size, but reduce entity count to 256 (before: 1024) per frame; to compensate, increase max frames from 64 to 256.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10853 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoCSQC entity networking: if a frame BEFORE the last packetlog reset got lost, this...
divverent [Sun, 20 Feb 2011 15:50:40 +0000 (15:50 +0000)]
CSQC entity networking: if a frame BEFORE the last packetlog reset got lost, this needs not trigger a new resend!

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10852 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadd missing args to Cmd_QuoteString in other files
divverent [Sat, 19 Feb 2011 20:00:18 +0000 (20:00 +0000)]
add missing args to Cmd_QuoteString in other files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10851 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoFix bad ipv6 support in status 1 and 2 commands:
divverent [Sat, 19 Feb 2011 16:36:39 +0000 (16:36 +0000)]
Fix bad ipv6 support in status 1 and 2 commands:

header not adapted to the new layout and overall ipv6 IPs not fully displayed

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10850 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoCmd_QuoteString: make it also able to put the enclosing quotation marks
divverent [Sat, 19 Feb 2011 16:31:16 +0000 (16:31 +0000)]
Cmd_QuoteString: make it also able to put the enclosing quotation marks

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10849 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix an unused variable
divverent [Wed, 16 Feb 2011 10:47:47 +0000 (10:47 +0000)]
fix an unused variable

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10848 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix compile error, sorry
divverent [Wed, 16 Feb 2011 10:41:47 +0000 (10:41 +0000)]
fix compile error, sorry

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10847 d7cf8633-e32d-0410-b094-e92efae38249

13 years agobecause Quake is insane, do NOT save vars matching _? even if not _x, _y, _z
divverent [Tue, 15 Feb 2011 06:46:02 +0000 (06:46 +0000)]
because Quake is insane, do NOT save vars matching _? even if not _x, _y, _z

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10846 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix some instances detecting vector component names to ONLY match _x, _y, _z, but...
divverent [Tue, 15 Feb 2011 06:31:53 +0000 (06:31 +0000)]
fix some instances detecting vector component names to ONLY match _x, _y, _z, but not e.g. _a; also fixes a bad memory access on one-letter global variable names

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10845 d7cf8633-e32d-0410-b094-e92efae38249

13 years agodocument autocvar _x, _y, _z issue
divverent [Tue, 15 Feb 2011 06:28:25 +0000 (06:28 +0000)]
document autocvar _x, _y, _z issue

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10844 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoUse the proper frametime calculation for model animations, this way they work in...
divverent [Mon, 14 Feb 2011 13:51:19 +0000 (13:51 +0000)]
Use the proper frametime calculation for model animations, this way they work in demo recording and such.

From: Samual <samual@xonotic.org>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10843 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix a compile error where an int was being assigned to an enum variable
havoc [Sun, 13 Feb 2011 08:56:55 +0000 (08:56 +0000)]
fix a compile error where an int was being assigned to an enum variable

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10842 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoalways force a flush on copy to texture
eihrul [Fri, 11 Feb 2011 22:23:27 +0000 (22:23 +0000)]
always force a flush on copy to texture

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10841 d7cf8633-e32d-0410-b094-e92efae38249

13 years agogit-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10840 d7cf8633-e32d-0410...
havoc [Fri, 11 Feb 2011 19:20:12 +0000 (19:20 +0000)]
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10840 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded iris adaptation experiment
havoc [Fri, 11 Feb 2011 18:59:09 +0000 (18:59 +0000)]
added iris adaptation experiment

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10839 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoremoved unmaintained CgGL rendering path
havoc [Wed, 9 Feb 2011 09:35:12 +0000 (09:35 +0000)]
removed unmaintained CgGL rendering path

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10838 d7cf8633-e32d-0410-b094-e92efae38249

13 years agovariables referring to cg in a way that is used by both CGGL and D3D9
havoc [Wed, 9 Feb 2011 09:20:05 +0000 (09:20 +0000)]
variables referring to cg in a way that is used by both CGGL and D3D9
paths are now called hlsl instead

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10837 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix an error in the HLSL shader (unintentional use of mix rather than lerp function)
havoc [Wed, 9 Feb 2011 09:13:34 +0000 (09:13 +0000)]
fix an error in the HLSL shader (unintentional use of mix rather than lerp function)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10836 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoGL20 path now uses same shader as GLES2 (albeit with the precision
havoc [Wed, 9 Feb 2011 08:27:05 +0000 (08:27 +0000)]
GL20 path now uses same shader as GLES2 (albeit with the precision
modifiers disabled), this means vertex attrib arrays instead of the
legacy pointers...  one side effect is that colors are no longer clamped

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10835 d7cf8633-e32d-0410-b094-e92efae38249

13 years agorevised SDL iOS instructions again now that SDL has GLES2 support
havoc [Wed, 9 Feb 2011 07:02:14 +0000 (07:02 +0000)]
revised SDL iOS instructions again now that SDL has GLES2 support

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10834 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofixed iOS rendering (set the vertex attribute bindings before attaching the shaders...
havoc [Wed, 9 Feb 2011 02:04:58 +0000 (02:04 +0000)]
fixed iOS rendering (set the vertex attribute bindings before attaching the shaders to the program)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10833 d7cf8633-e32d-0410-b094-e92efae38249

13 years agochanged the fs_userdir on iOS
havoc [Wed, 9 Feb 2011 02:04:03 +0000 (02:04 +0000)]
changed the fs_userdir on iOS

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10832 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded GLES2 GLSL shader, work in progress (no warnings/errors in basic usage)
havoc [Tue, 8 Feb 2011 18:25:42 +0000 (18:25 +0000)]
added GLES2 GLSL shader, work in progress (no warnings/errors in basic usage)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10831 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoDPiOS almost works now...
havoc [Tue, 8 Feb 2011 18:23:47 +0000 (18:23 +0000)]
DPiOS almost works now...
Side effects: had to change the internalformat hints on the GL texture formats, because values 3 and 4 are not supported on GLES, using GL_RGB and GL_RGBA instead (same meaning).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10830 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoOoops, forgot to update the description so the cvar makes more sense
divverent [Tue, 8 Feb 2011 09:24:19 +0000 (09:24 +0000)]
Ooops, forgot to update the description so the cvar makes more sense

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10829 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoFix a typo with declaration of the cvar and default it to off so it can be decided...
divverent [Tue, 8 Feb 2011 09:24:03 +0000 (09:24 +0000)]
Fix a typo with declaration of the cvar and default it to off so it can be decided upon by games specifically

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10828 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoAdd smoothing to the viewheight so that things such as crouching have a smooth transi...
divverent [Tue, 8 Feb 2011 09:23:58 +0000 (09:23 +0000)]
Add smoothing to the viewheight so that things such as crouching have a smooth transition - implemented in the engine because it's the best way to do it.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10827 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadd missing thread files to vcprojs
eihrul [Mon, 7 Feb 2011 23:07:10 +0000 (23:07 +0000)]
add missing thread files to vcprojs

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10826 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofactor out thread interface from dpsoftrast
eihrul [Mon, 7 Feb 2011 14:56:47 +0000 (14:56 +0000)]
factor out thread interface from dpsoftrast

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10825 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadd dpsoftrast to some missing targets
eihrul [Mon, 7 Feb 2011 10:26:04 +0000 (10:26 +0000)]
add dpsoftrast to some missing targets

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10824 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoensure dynamic textures get updated even if they are currently bound
eihrul [Mon, 7 Feb 2011 07:07:56 +0000 (07:07 +0000)]
ensure dynamic textures get updated even if they are currently bound

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10823 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix for span endpoint interpolation
eihrul [Mon, 7 Feb 2011 06:37:54 +0000 (06:37 +0000)]
fix for span endpoint interpolation

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10822 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoclamping for FlatColor shader (to fix gl_flashblend)
eihrul [Mon, 7 Feb 2011 05:49:54 +0000 (05:49 +0000)]
clamping for FlatColor shader (to fix gl_flashblend)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10821 d7cf8633-e32d-0410-b094-e92efae38249

13 years agomade GLES2 gl call wrappers compile again
havoc [Mon, 7 Feb 2011 03:55:13 +0000 (03:55 +0000)]
made GLES2 gl call wrappers compile again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10820 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded qglVertexAttrib and other missing functions on GLES2 path
havoc [Mon, 7 Feb 2011 03:45:51 +0000 (03:45 +0000)]
added qglVertexAttrib and other missing functions on GLES2 path

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10819 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded RENDERPATH_GLES2
havoc [Mon, 7 Feb 2011 03:32:23 +0000 (03:32 +0000)]
added RENDERPATH_GLES2

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10818 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoI don't think anyone needs my user files for the xcode project
havoc [Sun, 6 Feb 2011 22:24:38 +0000 (22:24 +0000)]
I don't think anyone needs my user files for the xcode project

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10817 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofixed missing break statement
eihrul [Sun, 6 Feb 2011 12:47:26 +0000 (12:47 +0000)]
fixed missing break statement

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10816 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoimplemented scissoring of triangles and extra necessary blendmode for xonotic hud
eihrul [Sun, 6 Feb 2011 12:44:54 +0000 (12:44 +0000)]
implemented scissoring of triangles and extra necessary blendmode for xonotic hud

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10815 d7cf8633-e32d-0410-b094-e92efae38249

13 years agocommitting missing function prototype
eihrul [Sun, 6 Feb 2011 10:46:59 +0000 (10:46 +0000)]
committing missing function prototype

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10814 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoband interlacing option (vid_soft_interlace)
eihrul [Sun, 6 Feb 2011 07:51:29 +0000 (07:51 +0000)]
band interlacing option (vid_soft_interlace)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10813 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoupdated readme for iOS compilation with instructions on how to modify SDL to use...
havoc [Sun, 6 Feb 2011 05:35:14 +0000 (05:35 +0000)]
updated readme for iOS compilation with instructions on how to modify SDL to use OpenGL ES 2.0 (as required by darkplaces)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10812 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoiOS support closer to working
havoc [Sun, 6 Feb 2011 03:25:42 +0000 (03:25 +0000)]
iOS support closer to working

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10811 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoremove a couple unused declarations
havoc [Sun, 6 Feb 2011 02:58:52 +0000 (02:58 +0000)]
remove a couple unused declarations

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10810 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoiOS support in progress - accommodating GLES...
havoc [Sun, 6 Feb 2011 02:58:13 +0000 (02:58 +0000)]
iOS support in progress - accommodating GLES...

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10809 d7cf8633-e32d-0410-b094-e92efae38249

13 years agochanged use of GL_ARB_fragment_shader and friends to the core GL 2.0
havoc [Sun, 6 Feb 2011 02:14:51 +0000 (02:14 +0000)]
changed use of GL_ARB_fragment_shader and friends to the core GL 2.0
functionality instead, for better GL ES 2.0 compatibility

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10808 d7cf8633-e32d-0410-b094-e92efae38249

13 years agocorrectly copy in all of quadelement3s to quadelement3i
eihrul [Sat, 5 Feb 2011 13:29:09 +0000 (13:29 +0000)]
correctly copy in all of quadelement3s to quadelement3i

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10807 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoensure UndoCommand wraps properly at 0
eihrul [Sat, 5 Feb 2011 12:22:27 +0000 (12:22 +0000)]
ensure UndoCommand wraps properly at 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10806 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoremove errant debugging code... again
eihrul [Sat, 5 Feb 2011 00:28:14 +0000 (00:28 +0000)]
remove errant debugging code... again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10805 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoattempted fix for VC compile errors
eihrul [Sat, 5 Feb 2011 00:26:14 +0000 (00:26 +0000)]
attempted fix for VC compile errors

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10804 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoremove debugging code
eihrul [Sat, 5 Feb 2011 00:20:48 +0000 (00:20 +0000)]
remove debugging code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10803 d7cf8633-e32d-0410-b094-e92efae38249

13 years agooptimized MultiplyVaryingBGRA8 and VaryingBGRA8
eihrul [Sat, 5 Feb 2011 00:19:12 +0000 (00:19 +0000)]
optimized MultiplyVaryingBGRA8 and VaryingBGRA8

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10802 d7cf8633-e32d-0410-b094-e92efae38249

13 years agouse short indices when available instead of int (fixes xonotic console weirdness)
eihrul [Fri, 4 Feb 2011 22:22:31 +0000 (22:22 +0000)]
use short indices when available instead of int (fixes xonotic console weirdness)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10801 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoclear scissor fix
eihrul [Fri, 4 Feb 2011 21:55:45 +0000 (21:55 +0000)]
clear scissor fix

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10800 d7cf8633-e32d-0410-b094-e92efae38249

13 years agomore fine-grained locking amongst backend threads
eihrul [Fri, 4 Feb 2011 20:28:42 +0000 (20:28 +0000)]
more fine-grained locking amongst backend threads

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10799 d7cf8633-e32d-0410-b094-e92efae38249

13 years agodistribute draw calls based on bounding box
eihrul [Fri, 4 Feb 2011 14:36:31 +0000 (14:36 +0000)]
distribute draw calls based on bounding box

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10798 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoonly force flushing on a texture update if a texture is already bound (for quake)
eihrul [Thu, 3 Feb 2011 21:15:16 +0000 (21:15 +0000)]
only force flushing on a texture update if a texture is already bound (for quake)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10797 d7cf8633-e32d-0410-b094-e92efae38249

13 years agonearest filtering fix
eihrul [Thu, 3 Feb 2011 11:37:13 +0000 (11:37 +0000)]
nearest filtering fix

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10796 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoUSE_SDL define
eihrul [Thu, 3 Feb 2011 09:14:53 +0000 (09:14 +0000)]
USE_SDL define

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10795 d7cf8633-e32d-0410-b094-e92efae38249

13 years agodetect whether dpsoftrast is being built with SDL
eihrul [Thu, 3 Feb 2011 09:05:39 +0000 (09:05 +0000)]
detect whether dpsoftrast is being built with SDL

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10794 d7cf8633-e32d-0410-b094-e92efae38249

13 years agothreading and more SSE2 optimizations for dpsoftrast
eihrul [Thu, 3 Feb 2011 08:33:03 +0000 (08:33 +0000)]
threading and more SSE2 optimizations for dpsoftrast

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10793 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded xcode project for building DarkPlaces on iOS using SDL 1.3
havoc [Wed, 2 Feb 2011 18:44:36 +0000 (18:44 +0000)]
added xcode project for building DarkPlaces on iOS using SDL 1.3

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10792 d7cf8633-e32d-0410-b094-e92efae38249

13 years agodon't use MacOSX-specific code with __IPHONEOS__ defined
havoc [Wed, 2 Feb 2011 18:35:57 +0000 (18:35 +0000)]
don't use MacOSX-specific code with __IPHONEOS__ defined

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10791 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoimplemented Texture_UpdatePartial
eihrul [Tue, 1 Feb 2011 14:14:04 +0000 (14:14 +0000)]
implemented Texture_UpdatePartial

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10790 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoalso apply volume.value to ambient sounds (is this really right?)
divverent [Mon, 31 Jan 2011 06:05:54 +0000 (06:05 +0000)]
also apply volume.value to ambient sounds (is this really right?)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10789 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoenable mod_bsp_portalize by default
havoc [Mon, 31 Jan 2011 04:40:45 +0000 (04:40 +0000)]
enable mod_bsp_portalize by default
enable r_shadow_realtime_world_compileportalculling by default
this is intended to restore lost rtworld performance, however it may not
be optimal on some q3bsp maps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10788 d7cf8633-e32d-0410-b094-e92efae38249

13 years agodefault gl_nopartialtextureupdates to 0 because it hurts fps a lot
havoc [Mon, 31 Jan 2011 03:37:10 +0000 (03:37 +0000)]
default gl_nopartialtextureupdates to 0 because it hurts fps a lot

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10787 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoclean up the Compile as C and Compile as C++ options on the files in the projects...
havoc [Mon, 31 Jan 2011 03:33:06 +0000 (03:33 +0000)]
clean up the Compile as C and Compile as C++ options on the files in the projects, thanks to Willis for advice on how to make this a project setting rather than a per file setting.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10786 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix compilation of dpsoftrast.c in MSVC - it doesn't seem to like initializers on...
havoc [Mon, 31 Jan 2011 00:57:09 +0000 (00:57 +0000)]
fix compilation of dpsoftrast.c in MSVC - it doesn't seem to like initializers on __m128 variables - and set it to compile as C++ in wgl build (like all other files in wgl build)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10785 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded dpsoftrast to project files
havoc [Sun, 30 Jan 2011 21:52:03 +0000 (21:52 +0000)]
added dpsoftrast to project files
added x64 build mode but it does not compile yet (dpsoftrast issues)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10784 d7cf8633-e32d-0410-b094-e92efae38249

13 years agosv_status_privacy: also apply to CCREQ_PLAYER_INFO
divverent [Sun, 30 Jan 2011 20:15:44 +0000 (20:15 +0000)]
sv_status_privacy: also apply to CCREQ_PLAYER_INFO

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10783 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded SDL 1.3 support
havoc [Sun, 30 Jan 2011 17:29:37 +0000 (17:29 +0000)]
added SDL 1.3 support

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10782 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoSquashed commit of the following:
divverent [Sat, 29 Jan 2011 22:19:48 +0000 (22:19 +0000)]
Squashed commit of the following:

commit 5c70a0cf78ecde6a1da9fe73516f8d2fe2251c81
Author: terencehill <piuntn@gmail.com>
Date:   Mon Jan 24 00:39:13 2011 +0100

    Fix a bunch of typos

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10781 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoSquashed commit of the following:
divverent [Sat, 29 Jan 2011 22:05:24 +0000 (22:05 +0000)]
Squashed commit of the following:

commit 4eece1a8617ec2e21dbc8732af65727792e432fb
Author: terencehill <piuntn@gmail.com>
Date:   Thu Jan 13 17:26:51 2011 +0100

    Color directories with blue when using autocompletion in the console. Improves readability.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10780 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoupdate copyright year
havoc [Sat, 29 Jan 2011 14:08:38 +0000 (14:08 +0000)]
update copyright year

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10779 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoprevent a segfault in case a bsp file has zero nodes (happens on broken input to...
divverent [Sat, 29 Jan 2011 10:14:13 +0000 (10:14 +0000)]
prevent a segfault in case a bsp file has zero nodes (happens on broken input to q3map2)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10778 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix a crash on edict_num(32767)
divverent [Sat, 29 Jan 2011 08:32:32 +0000 (08:32 +0000)]
fix a crash on edict_num(32767)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10777 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoadded _USE_MATH_DEFINES for weird MSVC problem
eihrul [Sat, 29 Jan 2011 07:13:28 +0000 (07:13 +0000)]
added _USE_MATH_DEFINES for weird MSVC problem

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10776 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix a C++ error
havoc [Sat, 29 Jan 2011 00:08:39 +0000 (00:08 +0000)]
fix a C++ error

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10775 d7cf8633-e32d-0410-b094-e92efae38249

13 years agofix some C++ warnings
havoc [Fri, 28 Jan 2011 23:56:56 +0000 (23:56 +0000)]
fix some C++ warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10774 d7cf8633-e32d-0410-b094-e92efae38249

13 years agooptimized VertexColor shader
eihrul [Fri, 28 Jan 2011 22:31:05 +0000 (22:31 +0000)]
optimized VertexColor shader

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10773 d7cf8633-e32d-0410-b094-e92efae38249

13 years agodon't report texture compression support in softrast renderpath
eihrul [Fri, 28 Jan 2011 22:07:29 +0000 (22:07 +0000)]
don't report texture compression support in softrast renderpath

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10772 d7cf8633-e32d-0410-b094-e92efae38249