Bill Currie
862e9d89c5
mindhog's fix for 32bpp x11
2003-06-17 03:11:24 +00:00
Chris Ison
d720efe1e6
fixed misplacement of menu
2003-06-16 12:31:52 +00:00
Bill Currie
66e2ef1926
fix an uninitialized variable
2003-05-23 17:39:33 +00:00
Bill Currie
c2c3a62956
nuke Qexpand_squiggle. instead, expand ~ to $HOME on qfs initialization and
...
cache the value.
don't call Qopen directly in the engine. instead call QFS_Open (generic) or
QFS_WOpen (write only, zip flag).
rework QFS_NextFilename to use a dstring (avoiding a potential buffer
overflow), support 10000 files and work from the top-level fs_userpath
directory. adjust QFS_WriteFile and QFS_WriteBuffers etc to suit.
make sw32 screenshots actually get written.
hopefully everything gets written to the right places :)
2003-05-23 17:17:01 +00:00
Bill Currie
6a8469df14
start working on VA support for borked GL libs
2003-05-21 21:53:21 +00:00
Bill Currie
ba3601685c
wad pics don't have extensions (plugs a buffer underflow hole)
2003-05-16 19:44:25 +00:00
Bill Currie
460c8f7f0f
mindHog's qfpython patch. GIB info string event callbacks and a compile fix
...
for broken x11 headers.
2003-05-16 16:17:24 +00:00
Brian Koropoff
dd0332632e
Make gcc2 stfu.
2003-05-15 04:37:00 +00:00
Brian Koropoff
e2061095a6
Fixed .tga loading for GL targets. SW targets still need work in all
...
likelyhood.
2003-05-14 21:08:43 +00:00
Ragnvald Maartmann-Moe IV
6763d73f99
Make glError testing static, for now, to shut up compiler warnings.
2003-05-09 05:22:30 +00:00
Ragnvald Maartmann-Moe IV
f6b556a3a1
*beats CVS with the cluebat*
2003-05-09 01:41:56 +00:00
Ragnvald Maartmann-Moe IV
d68b4b6121
\n is nice occasionally.
2003-05-08 22:32:02 +00:00
Ragnvald Maartmann-Moe IV
28dd1612c3
Clean up glError handling.
2003-05-08 22:16:30 +00:00
Bill Currie
0a5f3c31eb
ping/pl/fps/time now stays put and is now in the client rather than the
...
renderer (so nq is currently missing it)
2003-05-08 05:49:57 +00:00
Bill Currie
dc9d2c89da
fix various sizing issues
2003-05-07 07:10:15 +00:00
Bill Currie
a4abf526e8
there's no need to call Con_CheckResize every frame and it's now
...
detrimental anyway
2003-05-06 18:00:03 +00:00
Bill Currie
e732cf591d
remove all references to OFS_* from the C code. only the macros in progs.h
...
use them now
2003-04-22 18:20:15 +00:00
Bill Currie
f842d98964
initialize noise1
2003-04-22 01:37:13 +00:00
Bill Currie
905f1826eb
temporarily remove location support from nq (and location markers from both)
...
until client code has been cleaned up more
2003-04-21 18:26:21 +00:00
Bill Currie
9a40bf2956
get the fix right
2003-04-17 00:25:55 +00:00
Bill Currie
5cb8429f04
bah, cleanup for flex versions :P
2003-04-17 00:14:13 +00:00
Bill Currie
eb099ae0d3
make qf gcc 3.3 clean
2003-04-17 00:01:48 +00:00
Brian Koropoff
e707e9bb89
Moved gib_*.h into include/ and moved the necessary declarations and struct
...
definitions to QF/gib.h to interface with libQFgib.
2003-04-13 22:07:58 +00:00
Bill Currie
ff577f1175
add a \n to the grab failed message
2003-04-09 16:38:17 +00:00
Bill Currie
d3b6fcbd61
revert the inappropriately complicated event code for the simpler version.
...
even that's not likely to be final
2003-04-08 19:20:48 +00:00
Bill Currie
255a7522bd
merge IN_SendKeyEvents and IN_Commands into IN_ProcessEvents
2003-04-08 18:45:12 +00:00
Bill Currie
35eb866603
kill VID_HandlePause and IN_HandlePause as they never did anything and
...
IN_ModeChanged as it's a dead prototype
2003-04-08 17:55:32 +00:00
Bill Currie
fcc069d216
more unused files
2003-04-08 17:47:43 +00:00
Bill Currie
40a73ea5c1
don't need this
2003-04-08 17:32:55 +00:00
Bill Currie
01bff9c79e
WildCode's alias model VA prepatory patch
2003-04-08 04:13:49 +00:00
Bill Currie
e483333bbe
beat the skydome bugs to a pulp. no more seam (and probably a bunch faster
...
on slow cards)
2003-04-05 07:59:29 +00:00
Bill Currie
6cc7d43b53
make the texture coords in skyvec always 1/2 pixel in from the edge
2003-04-04 07:00:51 +00:00
Bill Currie
e00966b319
speed up 16 bit vertex lerping by getting GL to do the 1/256 scaling for us
2003-04-03 23:09:43 +00:00
Ragnvald Maartmann-Moe IV
8db859b77c
Minor bit of neatening, remove CHAIN_SURF alias, so it's clearer what is being used where.
2003-03-25 07:25:22 +00:00
Ragnvald Maartmann-Moe IV
6c7701a38b
Prevent bad gl_max_size settings from causing buggy drivers to freak out.
2003-03-24 20:21:24 +00:00
Ragnvald Maartmann-Moe IV
3bfdf0aea3
Test for gl errors every frame.
2003-03-21 21:28:09 +00:00
Ragnvald Maartmann-Moe IV
88c2735d9c
Make sprite rendering use vertex arrays, as a test for detection of vertex array support (tests only for OpenGL 1.1 or better, at the moment, no driver blacklist yet).
2003-03-20 19:58:18 +00:00
Bill Currie
aa345faf12
use the window size for the fullscreen view
2003-03-17 05:39:10 +00:00
Bill Currie
a8a8792a76
support vid_conwidth cvar (for -conwidth). while present in all targets, it
...
will only work in gl
2003-03-17 05:17:58 +00:00
Bill Currie
57a470a88a
alpha compile fixes (unused functions)
2003-03-08 07:17:32 +00:00
Bill Currie
a8c989969d
hopefully better input grabbing state tracking
2003-03-07 22:30:15 +00:00
Bill Currie
c731afa957
hopefully fix the input grabbing (and evem more hopefully, without driving
...
Despair to ... um... ;)
2003-03-07 03:55:51 +00:00
Ragnvald Maartmann-Moe IV
f57eb911cc
Another little FIXME. (Cleanup I'll do soon, hopefully)
2003-03-03 19:32:56 +00:00
Ragnvald Maartmann-Moe IV
2000954a2c
Whitespace, and a workaround for show_* misplacement.
2003-03-03 19:20:44 +00:00
Bill Currie
be728c7b7c
Initialize p_mouse_x and p_mouse_y from the EnterNotify event so that the
...
first mouse move of the game doesn't screw up your view. Also does resonable
behaviour when entering and leaving the window.
2003-02-25 17:19:47 +00:00
Ragnvald Maartmann-Moe IV
1201f615ee
Move a test inside function, rather than repeated all over the place.
2003-02-25 06:04:42 +00:00
Ragnvald Maartmann-Moe IV
a9c61bb6bf
Updated for OpenGL 1.4, plus whitespace.
2003-02-25 05:45:11 +00:00
Ragnvald Maartmann-Moe IV
d9ed34a5fb
More video mode selection robustness improvements.
2003-02-23 20:21:06 +00:00
Bill Currie
851d203916
work towards a more secure qfs
2003-02-14 22:36:10 +00:00
Bill Currie
6a687f5e45
rename all the globals in quakefs.[ch] to be QFS_* or qfs_*
2003-02-14 19:46:07 +00:00
Brian Koropoff
3c522a83bc
Various cleanups and bugfixes. Added proper line number reporting to
...
errors. A few new builtin functions, such as slice::find and thread::list.
2003-02-14 08:06:01 +00:00
Ragnvald Maartmann-Moe IV
a34980eda5
Fix easter_egg toggling.
2003-02-14 00:58:22 +00:00
Ragnvald Maartmann-Moe IV
6d6fade23a
Change mach64 test to only happen at particle system inits, rather than testing for every individual particle injection.
...
Mach64 now gets id particle effects. Disabling the majority of effects isn't the best method, IMO.
2003-02-13 21:48:28 +00:00
Ragnvald Maartmann-Moe IV
646f875a34
Add return value checking for in_grab. Also some dead code removal, dangling comment and white space cleanup.
2003-02-13 19:03:48 +00:00
Bill Currie
53d3252792
don't adjust the system gamma unless the window has focus. also quench an
...
internal warning (the event system can't handle shm events (doesn't seem to
need to anyway)).
2003-02-13 18:24:30 +00:00
Ragnvald Maartmann-Moe IV
af33733ce4
More x86-64 (AMD, not intel IA64, taniwha!) fixes.
...
Compile problems pointed out by Mike A. Harris. Thanks!
2003-02-12 23:41:20 +00:00
Bill Currie
4bd1718475
re-arrange viewsize handling to fix the hud bug in glx
2003-02-11 21:24:27 +00:00
Bill Currie
d86b431860
fix a couple of warnings
2003-02-10 03:19:54 +00:00
Ragnvald Maartmann-Moe IV
83f0901c17
Cleaned up fisheye code which totally ignored QF coding style.
...
Also attempt to fix an init bug in R_InitFishEyeOnce (add gl_cube_map_capable = false to else).
2003-02-09 19:35:49 +00:00
Ragnvald Maartmann-Moe IV
76eb7917a7
More whitespace.
2003-02-09 10:18:43 +00:00
Ragnvald Maartmann-Moe IV
5466f33dff
Whitespace, while I'm in the area...
2003-02-09 10:17:20 +00:00
Ragnvald Maartmann-Moe IV
22641c40fc
Make -sgl video mode selection much more robust. Particularly needs testing with voodoo 1 & 2, and on windows.
...
If you have problems with input grabbing, try `+set vid_fullscreen 1` or `+set in_grab 1` on the command line.
2003-02-09 10:15:20 +00:00
Bill Currie
3ab4eb6545
Arkadi's mach64 patch
2003-02-06 21:47:33 +00:00
Bill Currie
c103d77157
make SND_ClearBuffer get called directly by Block/UnblockSound and remove
...
S_ClearBuffer from the api
2003-01-31 19:55:21 +00:00
Bill Currie
570a72497f
patches from the FreeBSD ports that are still applicable
2003-01-31 18:19:55 +00:00
Bill Currie
c788a2ea57
remove a redundant call to S_Init_Cvars and call S_ClearBuffer when sound
...
is blocked and unblocked.
2003-01-31 17:56:05 +00:00
Brian Koropoff
1668dd5c1a
Whoops, missed these.
2003-01-28 22:37:34 +00:00
Ragnvald Maartmann-Moe IV
979ee7b2f8
Fix misleading comment and cvar documentation.
2003-01-28 21:31:55 +00:00
Bill Currie
c5eb7d6e94
bring back the screen saver code
2003-01-16 21:44:42 +00:00
Bill Currie
d63cde4103
import the GL_ARB_texture_cube_map defines
2003-01-15 18:26:58 +00:00
Bill Currie
0ea15c3f82
sw and gl fisheye patches from Arkadi Shishlov (arkadi@it.lv). I don't
...
think /I/ can play that way (dizzy:)
2003-01-15 16:53:34 +00:00
Bill Currie
761a7546dd
re-arrange things so __attribute__ and __builtin_expect are properly
...
autoconfiscated so rcsid will continue to work with gcc 3.3
2003-01-15 15:31:36 +00:00
Ragnvald Maartmann-Moe IV
e2d199cfb2
Try to open graphics at desktop bit depth, rather than 8bpp. Might explain some very grainy windows screenshots...
2003-01-12 16:58:31 +00:00
Ragnvald Maartmann-Moe IV
34d4483424
white noise, er space.
2003-01-08 01:46:28 +00:00
Ragnvald Maartmann-Moe IV
d2820cd857
Reduce code duplication, kill a function used by only one caller.
...
Also disables a workaround for "interpolation seams" that I believe to be an old DRI bug. If anyone has skybox (not dome!) seams, try altering the ftc `if 0` to `if 1`.
2003-01-07 22:12:54 +00:00
Bill Currie
9538e009b7
small bit of cleanup
2003-01-07 20:02:30 +00:00
Bill Currie
ca720c26a5
blah, forgot about no-asm :P
2003-01-06 19:05:51 +00:00
Bill Currie
71196fedf6
make gcc more anal about prototypes, string constants and function
...
visibility (ie, global functions must have a prototype)
2003-01-06 18:28:13 +00:00
Bill Currie
6b705adc31
fix a missed libasm -> libvid_asm change
2003-01-04 03:08:32 +00:00
Bill Currie
8a2fbf43a7
alphageek's crosshair patch modified so it's crosshair 3 (need to port this
...
to the sw renderer's:/)
2003-01-03 03:36:45 +00:00
Bill Currie
f75c88b247
work around a gcc (GCC) 3.1 20020420 (prerelease) bug in darwin (ppc?)
2002-12-20 23:49:11 +00:00
Bill Currie
dbd5b16883
rename the convenience libs to avoid problems with libx11 vs libX11 on
...
darwin (damn case insensitive file systems :P)
2002-12-20 23:40:47 +00:00
Bill Currie
1130eed85a
make the "no mouse" error message a little more informative
2002-12-19 16:58:44 +00:00
Bill Currie
a84b6bba5d
make stuff static that can be and nuke some useless stuff
2002-12-16 23:26:14 +00:00
Bill Currie
ee868367d5
we don't currently support scitech's mgl
2002-12-16 21:57:36 +00:00
Bill Currie
d332a9f5ae
remove useless file
2002-12-16 21:09:25 +00:00
Bill Currie
86ed9e1130
add some missing ()s
2002-12-16 19:39:02 +00:00
Bill Currie
1c4b40c291
similar cleanups to vid_svgalib.c
2002-12-16 19:36:46 +00:00
Bill Currie
80146121dc
require an 8 bpp mode
2002-12-16 19:36:14 +00:00
Ragnvald Maartmann-Moe IV
4b32916298
Legibility. Whitespace. Stuff like that.
2002-12-16 19:26:53 +00:00
Bill Currie
e381d2a0fc
remove vid_mode and the mode description commands
2002-12-16 19:23:41 +00:00
Bill Currie
1311773a90
make -svga mode selection consistent with -x11 etc and also fix the mode
...
matching algo so it actually works
2002-12-16 18:50:09 +00:00
Ragnvald Maartmann-Moe IV
f053f3b70f
Whitespace. Grr.
2002-12-16 17:59:45 +00:00
Bill Currie
31969b67ad
a couple of missed cleanups from the screen merge
2002-12-12 05:12:09 +00:00
Bill Currie
37c5bb6ec6
merge the bulk of the three screen files into r_screen.c so all common code
...
is shared.
2002-12-11 17:34:48 +00:00
Bill Currie
bf3fa3dc76
remove some dead code and a lot of unnecessary diffs
2002-12-11 16:45:40 +00:00
Bill Currie
ca55210c6e
remove some redundant steps
2002-12-11 05:46:42 +00:00
Bill Currie
88f7b9ae84
it's rgb, not rbg
2002-12-11 05:33:54 +00:00
Bill Currie
15655c23cd
get snaps working properly
2002-12-10 18:24:38 +00:00
Bill Currie
c158f0028b
fix gl_stub so it works again and also get the gl functions being looked up
...
properly
2002-12-10 15:30:16 +00:00
Bill Currie
7da551d044
the output is rather mangled but the client no longer crashes
2002-12-10 05:04:30 +00:00
Bill Currie
de7299a64f
don't crash when doing a remote screenshot
2002-12-09 17:47:12 +00:00
Bill Currie
92ea1de504
apply Kaare Slettnes' key name extention patch ( Closes : #62 )
2002-12-02 16:26:18 +00:00
Brian Koropoff
f1279be1e5
Fixed a segfault with very high resolutions.
2002-11-23 05:47:17 +00:00
Bill Currie
ee30860cef
fix a bunch of ;; typos
2002-11-20 21:44:04 +00:00
Bill Currie
6ce0abe536
more alpha compile fixes. Closes : #60 because while it started out for
...
0.1.1 it developed into an alpha compile issue for 0.5.2
2002-11-13 20:20:50 +00:00
Brian Koropoff
0f71b02fd7
Changed the name of GIB builtins from string.length to string::length, etc.
...
Made a few miscellaneous cleanups and enhancements to builtins and changed
all the GIB scripts in CVS to reflect the new naming conventions.
2002-11-11 01:57:34 +00:00
Bill Currie
aa5ad0f0f9
don't use glXGetProcAddressARB to look up the glX functions. hopefully fixes
...
the nvidea segfault
2002-11-10 23:31:19 +00:00
Bill Currie
498bdcc406
compile fixes for alpha linux
2002-11-10 02:50:42 +00:00
Bill Currie
1dfbf4ba7e
win32 compile fixes
2002-11-08 23:13:52 +00:00
Bill Currie
71e95ee26f
stop lying about responding to Delete events
2002-11-06 17:09:01 +00:00
Bill Currie
ca4b3acd6c
big protototype cleanup. Now, except for a few cases, all non-static
...
prototypes are in headers files.
2002-11-05 19:12:51 +00:00
Brian Koropoff
01a7740f1b
Added bind.get builtin that returns the command currently bound to a key.
...
Fixed gib_builtin.h to include another needed header.
2002-10-25 06:33:16 +00:00
Bill Currie
652907bc58
X overlays crash fix from Vincent Cojot
2002-10-11 21:32:17 +00:00
Bill Currie
9f7c669370
various win32 compile fixes for the latest mingw (not fully working due to
...
LPCWAVEFORMATEX)
2002-10-11 20:47:17 +00:00
Ragnvald Maartmann-Moe IV
00b798c5b6
MORE whitespace. Will it never end?
2002-10-10 20:12:32 +00:00
Ragnvald Maartmann-Moe IV
0b0f9ee371
More whitespace.
2002-10-10 20:03:23 +00:00
Ragnvald Maartmann-Moe IV
ef47bf6e12
gl_skymultipass -> gl_sky_multipass. Much nicer tab completion.
2002-10-10 19:49:36 +00:00
Ragnvald Maartmann-Moe IV
b025a4e9aa
Wh17e5p@c3!
2002-10-10 19:44:27 +00:00
Ragnvald Maartmann-Moe IV
0d28f4d63a
More whitespace.
2002-10-10 19:32:19 +00:00
Bill Currie
6917d2c1a3
fix a silly pointed out by sixk@ifrance.com
2002-10-05 02:21:44 +00:00
Ragnvald Maartmann-Moe IV
998d68a833
In GL, have r_speeds 1
display particle count.
2002-10-02 04:15:23 +00:00
Bill Currie
9aa84f4ead
case i has 7 visits, not 6 :P
2002-10-02 01:58:29 +00:00
Chris Ison
7c9f1a51ec
Bug Fix, mouse didn't work in svga client.Fixed by closing the mouse before initing it due to vga_init initing the mouse when called
2002-09-30 23:16:20 +00:00
Bill Currie
3d668334e6
copy that fix for the other renderers
2002-09-30 21:35:13 +00:00
Bill Currie
d7bbe82efd
make sure the bottom part of the console gets updated properly if it covers
...
the status bar.
2002-09-30 21:25:24 +00:00
Bill Currie
6a96697080
use int_val instead of value for vid_fullscreen
2002-09-30 03:31:22 +00:00
Bill Currie
b0629d24fa
handle the new case Despair discovered.
2002-09-23 06:18:48 +00:00
Bill Currie
5189ffeae9
fix software model lighting
2002-09-18 14:38:41 +00:00
Ragnvald Maartmann-Moe IV
a9b16f5de5
Tweak ramp decay on new spark shower.
2002-09-17 05:13:13 +00:00
Ragnvald Maartmann-Moe IV
d6a2b54252
Use ramps for spark showers, so they fade in color as well as alpha.
...
Lightning doesn't have a ramp, so it doesn't use this feature yet.
2002-09-17 02:14:58 +00:00
Bill Currie
f7b4dffcc0
get larger player skins working in gl
2002-09-13 05:32:28 +00:00
Ragnvald Maartmann-Moe IV
2a8896d4a1
Grr, what's with cvs today?
2002-09-13 01:08:21 +00:00
Ragnvald Maartmann-Moe IV
ca50e1945b
Oops.
2002-09-13 00:23:58 +00:00
Bill Currie
899ad6bebe
use the correct palette when writing out screen shots
2002-09-10 15:13:12 +00:00
Bill Currie
ecdd537183
beat sw gamma handling till GL works. after a fasion. it /looks/ like it was
...
beaten on.
2002-09-10 06:35:32 +00:00
Bill Currie
9f6f50699d
remove vid_basepal, creating vid.palette (current palette) and host_basepal
2002-09-10 03:51:10 +00:00
Bill Currie
f6ab24e6bc
min-clamp ambientcolor instead of shadecolor. should make for more visible
...
players
2002-09-09 23:06:08 +00:00
Ragnvald Maartmann-Moe IV
c4609f5195
Experimentally allow external texture loading. Also prevent loading RGB textures as RGBA, which wastes a lot of texture memory, and looks ugly on 16bpp boards.
2002-09-06 21:37:22 +00:00
Ragnvald Maartmann-Moe IV
92db391e7c
Optimize model rendering a hair. WildCode spotted that minimum shade was only being applied to the view model (why do we set it up for other stuff if it's not going to be used?). While looking at that, I noticed we could do the divide by 200 in model setup.
2002-09-01 23:45:22 +00:00
Bill Currie
9a577c2233
make the old keyname message a little clearer
2002-08-29 18:56:55 +00:00
Ragnvald Maartmann-Moe IV
e7f6930efa
Hacky key repeat handling, just like in_x11.c!
2002-08-29 04:00:30 +00:00
Bill Currie
e1a9cfb6f0
rename gl_max_vaelements to gl_vaelements_max
2002-08-28 07:44:58 +00:00
Bill Currie
a99329eff9
add a cvar to control the maximum vertex array size for buggy drivers.
...
defaults to 0 (no limit).
2002-08-28 01:35:50 +00:00
Ragnvald Maartmann-Moe IV
c1a8a02762
Whitespace.
2002-08-27 19:38:04 +00:00
Bill Currie
a7380fef66
nuke msg_suppress_1 in favor of Sys_DPrintf
2002-08-27 18:05:59 +00:00
Bill Currie
ec47e08e1c
go back to using QFile, quakeio.h and quakefs.h
2002-08-27 07:16:28 +00:00
Bill Currie
7f5c99efdc
fix -sdl32 crashing on startup (vid_bitdepth init got lost)
2002-08-26 22:43:34 +00:00
Ragnvald Maartmann-Moe IV
d11fbc0b5c
Change from if/else if/else function for setting scale in a number of particle effects, to scale = pow (count, 0.23). Smooth particle size changes with varying count, and doesn't seem any slower in my benchmarks.
2002-08-26 00:11:16 +00:00
Ragnvald Maartmann-Moe IV
ff03367bc2
Whitespace and comment cleanups.
2002-08-25 05:55:28 +00:00
Ragnvald Maartmann-Moe IV
147f940510
Kill dead gl_occlusion cvar.
2002-08-23 21:55:59 +00:00
Ragnvald Maartmann-Moe IV
7bf21e20ed
Use R_CullSphere for rotated bsp models.
2002-08-23 21:14:43 +00:00
Ragnvald Maartmann-Moe IV
aa85219dc4
Commit R_CullSphere use for alias models. Only a 3.3% speed hit for me, and should quiet "foo is disappearing" whinging.
2002-08-23 04:09:00 +00:00
Bill Currie
c44ec1993d
handle up to 512x512 map textures /properly/. would be nicer if the max
...
could be dynamic
2002-08-22 19:00:55 +00:00
Ragnvald Maartmann-Moe IV
9bf3ccd813
SDL-using targets are now aware if the cursor is in the window or not. in_snd_block now works for them.
...
(Also cursor hiding when in window was fixed for -sgl, already committed)
2002-08-21 06:06:05 +00:00
Ragnvald Maartmann-Moe IV
f92c2d8525
Whitespace cleanups and some cruft removal.
2002-08-21 06:00:08 +00:00
Ragnvald Maartmann-Moe IV
9d2e09feee
Whitespace.
2002-08-21 05:59:00 +00:00
Bill Currie
84afd9e299
d'oh, dunno why I did 8 bit that way, put /it/ back to the old shared buffer
...
way because it always worked and it really doesn't need the slowdown.
2002-08-21 05:15:08 +00:00
Bill Currie
be75ff490f
fix -x11 screenshots and remove some dead code
2002-08-21 04:58:47 +00:00
Bill Currie
09d89a3214
move bi_keys from csqc to pr_keys in targets allowing the server to link
...
with libQFcsqc (need a new name:P)
2002-08-21 02:25:51 +00:00
Bill Currie
6b559077dc
Nuke the screen saver code as it hasn't been needed since we stopped using
...
dga keyboard input
2002-08-21 02:10:47 +00:00
Ragnvald Maartmann-Moe IV
1489ee8648
Remove old keyboard/mouse grabber cruft.
2002-08-21 01:55:31 +00:00
Ragnvald Maartmann-Moe IV
b96617e935
Some more whitespace, plus stop unconditionally resuming cd audio and sound when focus restored.
2002-08-21 01:40:21 +00:00
Ragnvald Maartmann-Moe IV
ee7e3326e0
Merging common SDL video code into context_sdl.c, to make adding SDL features easier.
2002-08-21 00:05:27 +00:00
Ragnvald Maartmann-Moe IV
168915faed
Some header cleanup, some whitespace.
2002-08-21 00:04:35 +00:00
Bill Currie
5009213564
Move the signal handling code from video/targets/* to sys.c (I'm leaving
...
the SDL target files for Despair since he's working on the currently). Also
make progs segfault handling much more robust (and general: sigill etc too:)
2002-08-20 23:04:57 +00:00
Bill Currie
099e2739b5
various msvc fixes thanks to muzzy (hope he doesn't give up:)
2002-08-20 19:16:11 +00:00
Ragnvald Maartmann-Moe IV
c91f1a2aea
Rename Length to VectorLength.
2002-08-20 02:22:40 +00:00
Ragnvald Maartmann-Moe IV
32a85e7130
Clipping cleanups.
...
Calculate radius for alias models as well as brush.
Culling is no longer optional on alias models (was only ever disabled for viewmodel, which is a lot of extra effort to avoid clip testing 1 thing out of hundreds).
Clip QSG2 scaled alias models with a scaled bbox.
2002-08-20 00:48:59 +00:00
Bill Currie
55cdde81da
rename clmodel to model
2002-08-19 04:15:46 +00:00
Bill Currie
b1a180b25e
move the view model check for min_light into the model loader (checks for
...
progs/v_*)
2002-08-19 04:05:02 +00:00
Bill Currie
2b1fd8e8c0
fix the menu keybinding not working bug
2002-08-19 02:48:38 +00:00
Bill Currie
4b1ceb9795
hopefully take care of glGetProcAddress type once and for all :)
2002-08-16 18:29:21 +00:00
Ragnvald Maartmann-Moe IV
3b65cbc35d
Raorn's SDL_GL_GetProc support. Makes -sgl targets work again, hopefully on windows as well as linux.
...
Now just need to get key repeat, focus handling and sound blocking on focus loss working like x11 input system does, and sdl support will be in pretty good shape. And clean out all the stupid #ifdefs...
2002-08-16 07:53:11 +00:00
Bill Currie
1a0cf8d1f4
remove some redundant/incorrect code
2002-08-14 06:28:38 +00:00
Bill Currie
7ed7938b1c
get colored lighting working reasonably well
2002-08-14 05:45:50 +00:00
Bill Currie
2abaf27cdc
attempt to fix the dark models at centers of dlights
2002-08-12 15:36:52 +00:00
Bill Currie
8e97d6279a
first stab at colored alias model lighting
2002-08-12 06:14:55 +00:00
Bill Currie
1afd2d95b2
break out the 1 vs 3 lightmap components code into separate functions and
...
do preliminary support for colored alias model lighting
2002-08-12 04:42:29 +00:00
Bill Currie
7e4e294089
fix the unlit models in full light bug
2002-08-12 02:05:45 +00:00
Bill Currie
4123d74e5e
don't segfault when a surface uses the `null' texture (r_notexture_mip)
2002-08-09 06:07:25 +00:00
Ragnvald Maartmann-Moe IV
30012cc753
Fix K_RCTRL handling.
2002-08-08 05:53:58 +00:00
Bill Currie
cbde41c669
damnit!
2002-08-08 04:41:41 +00:00
Bill Currie
3baec9e856
clean out the dead mtex code
2002-08-08 04:27:49 +00:00
Bill Currie
ca92e5885f
part of the macroizing
2002-08-07 18:21:36 +00:00
Ragnvald Maartmann-Moe IV
f773e1fa36
Minor alias model rendering speedup.
2002-08-03 07:07:23 +00:00
Ragnvald Maartmann-Moe IV
10c3f91a24
Revert taniwha's broken-radeon workaround.
2002-08-03 07:07:00 +00:00
Bill Currie
9c08f5b169
fix a typo that caused weirdness with the lerping
2002-08-03 06:13:35 +00:00
Chris Ison
c6217dc7a7
fix bug where -commands where executed and command buffer could be filled when key repeated
2002-08-03 00:19:41 +00:00
Ragnvald Maartmann-Moe IV
97d6f46f75
Speed up 16bit coord alias models a bit. (only one VectorScale per vertex now)
2002-08-02 18:07:53 +00:00
Bill Currie
2ce0f2ded2
we now require modern autoconf (2.52+), automake (1.6+) and libtool (1.4+).
...
This gives us a bunch more flexibility. plugins no longer have the "lib"
prefix or the version suffix, they're now installed in
$fs_sharepath/QFplugins,, builds should take much less time (in general,
only one of pic or non-pic versions are build), bins and libs can have
individual CFLAGS
2002-08-01 19:49:10 +00:00
Bill Currie
4b9382d4a8
nuke GGI_CFLAGS (never set)
2002-07-31 18:51:34 +00:00
Bill Currie
ad6e025a91
take cmd.[ch] back to basics. the gib code is temporarily gone pending
...
renovations. cmd_source handling is a little hacky in nq, but it's working.
2002-07-31 05:19:03 +00:00
Bill Currie
0514d37458
don't accept absurdly large vertex arrays
2002-07-27 16:46:58 +00:00
Bill Currie
d04eeb3ba2
get -wgl working again
2002-07-27 06:43:28 +00:00
Ragnvald Maartmann-Moe IV
587de27849
Another step towards QSG2 compliance.
2002-07-25 14:43:36 +00:00
Ragnvald Maartmann-Moe IV
3c7d65a798
Whitespace.
2002-07-25 14:42:41 +00:00
Ragnvald Maartmann-Moe IV
4ed68266ea
Speedup when r_waterripple = 0, and small speedup to texture coordinate calculation.
2002-07-25 14:01:36 +00:00
Bill Currie
51e4cad3fe
get Draw_SubImage doing transparencies
2002-07-25 05:04:22 +00:00
Bill Currie
51b189f56a
make Draw_SubPic do transparent pics
2002-07-25 04:30:50 +00:00
Bill Currie
defcedec49
give access to Draw_SubPic
2002-07-24 21:39:03 +00:00
Ragnvald Maartmann-Moe IV
d3fc8c5fb6
No need for function pointers on R_AddDynamicLights_*, they are never called from outside the R_BuildLightMaps_* function that matches them.
...
Nice spotting, taniwha!
2002-07-24 15:30:28 +00:00
Ragnvald Maartmann-Moe IV
85c7e43aef
Split lightmaps off from surface drawing.
2002-07-23 19:57:47 +00:00
Ragnvald Maartmann-Moe IV
1f8a1d613f
Fix r_particles_nearclip being forced to max.
2002-07-08 00:05:33 +00:00
Ragnvald Maartmann-Moe IV
d297c2b3a3
Colormod & alpha for brushmodels, excluding skypoly emittors.
2002-07-07 06:15:36 +00:00
Ragnvald Maartmann-Moe IV
edc4e27124
Minor order fixup.
2002-07-07 02:34:48 +00:00
Jeff Teunissen
065ec7ff39
Clean up the "fxMesa" error message so it makes more sense, and so most people
...
will actually see it if they need it.
2002-07-03 06:31:03 +00:00
Ragnvald Maartmann-Moe IV
e1854315ac
Clean out DDActive, except from -mgl, which isn't supported ATM. Clean up vid_mgl.c comments and dead code a bit.
2002-07-02 20:34:51 +00:00
Bill Currie
e5d8781150
win32 compile fixes. still have problems with DDActive, but Despair's going
...
to look at that.
2002-07-02 18:45:50 +00:00
Ragnvald Maartmann-Moe IV
a49177c605
Merge a few more lines into queue_character, and prepare for optimizing gl Draw_nString.
2002-06-28 17:47:26 +00:00
Bill Currie
1828cbff5a
get the type for getProcAddress right
2002-06-28 17:15:49 +00:00
Ragnvald Maartmann-Moe IV
4e467ac8df
Whitespace.
2002-06-27 18:50:26 +00:00
Bill Currie
e77d730054
windows really sucks
2002-06-27 16:37:16 +00:00
Ragnvald Maartmann-Moe IV
fd1ded5c4a
Add r_nearclip and r_particles_nearclip. Also put some limits on r_farclip. And fix id's insane max and min float, and some minor improvements in frustum setup in GL.
2002-06-26 22:20:12 +00:00
Ragnvald Maartmann-Moe IV
e6e11af426
Move the contents of gl_funcs.c out of the renderer, and into targets where they belong. Also some cleanups. -sgl target is temporarily broken, all others should work.
2002-06-24 21:35:37 +00:00
Chris Ison
70d8026067
Removing -3dfx's dependancy on clide
2002-06-24 15:56:01 +00:00
Ragnvald Maartmann-Moe IV
c8bc5dfb4c
QSG2 glows almost working. Plus lots of typos killed.
2002-06-18 21:41:24 +00:00
Ragnvald Maartmann-Moe IV
c25cfe6c9e
A couple extra glFinishes a frame just aren't good for performance, even if they are a handy workaround for taniwha's text rendering bug...
2002-06-18 15:40:30 +00:00
Bill Currie
1486c97b8f
move the vertex setup and va flushing code into inline functions, killing a
...
lot of duplicate code. Performance is not harmed :)
also some whitespace
2002-06-18 04:13:46 +00:00
Ragnvald Maartmann-Moe IV
00f5d82a86
Make wizard spike hits visible, plus a couple minor cleanups.
2002-06-15 10:54:26 +00:00
Ragnvald Maartmann-Moe IV
2a4f2a77fb
Whitespace.
2002-06-15 10:52:14 +00:00
Bill Currie
b65c96ad99
don't call draw_z_sky_polys for modes that don't need it
2002-06-14 19:25:32 +00:00
Ragnvald Maartmann-Moe IV
eaf0f90c2f
Undo thinko.
2002-06-14 06:23:11 +00:00
Ragnvald Maartmann-Moe IV
c7432caf2e
Fixes to shadow rendering, plus get QSG scale working for alias models. Which breaks viewmodel rendering until we figure out how that is escaping getting scale set.
2002-06-14 06:08:45 +00:00
Ragnvald Maartmann-Moe IV
f12af8a3d4
Minor cleanup/optimization of sprite model rendering.
2002-06-14 06:06:38 +00:00
Ragnvald Maartmann-Moe IV
463ac44d9f
Minor optimization for shadows, and make translucent objects have shadows matching their alpha.
2002-06-14 04:14:52 +00:00
Ragnvald Maartmann-Moe IV
942bf55c06
Flush console text before rendering menus, and a tiny optimization to fullscreen blend rendering in GL.
2002-06-13 22:51:43 +00:00
Ragnvald Maartmann-Moe IV
10d7d17fcc
Use vertex arrays for text. Another 1-3% speedup.
2002-06-13 05:24:52 +00:00
Ragnvald Maartmann-Moe IV
87741d2b90
Tweak r_firecolor to reduce haloing on rocket dlights.
2002-06-12 04:37:33 +00:00
Bill Currie
74597018ec
heh, forgot to ifdef the call to R_InitVars
2002-06-10 22:52:13 +00:00
Bill Currie
3551b82a50
compile fix for when vidmode isn't available
2002-06-10 22:30:30 +00:00
Ragnvald Maartmann-Moe IV
9bca381c41
Remove R_Init_Entity. Never used, and probably doesn't belong in the renderer.
2002-06-07 23:38:53 +00:00
Bill Currie
ebfdbd9285
the fpu manipulation stuff seems to be better off in the one place that
...
actually uses it...
2002-06-07 15:09:20 +00:00
Bill Currie
4e07810f0d
a little cleanup of unneeded lines
2002-06-07 14:44:02 +00:00
Ragnvald Maartmann-Moe IV
ceb73449bb
Order of operations cleanup, QSG2 alpha is now colormod[3] in entities.
2002-06-07 11:25:47 +00:00
Ragnvald Maartmann-Moe IV
46949068a2
Check return value on R_AllocDlight. Small optimization, people cutting r_dlight_max heavily should like it.
2002-06-05 22:07:38 +00:00
Ragnvald Maartmann-Moe IV
0552d31b0b
Minor optimization.
2002-06-05 06:46:21 +00:00
Ragnvald Maartmann-Moe IV
0bce2d0f2e
Add QSG2 colormod, alpha, and scale for sprites. Probably not used by anything, but there you go.
2002-06-05 05:56:13 +00:00
Bill Currie
b4e8e0750c
well, that's one way to confuse anybody
...
fixes the floating point exception
2002-06-03 07:23:41 +00:00
Brian Koropoff
d85a238af2
Modified cmd.c to prepare for more file access functions and changed
...
the bind system to keep a restricted flag on binds to prevent the
server from executing restricted commands by binding them to keys.
2002-05-31 05:38:06 +00:00
Bill Currie
381bdb2323
it seems some GL libs can return a null extension list (ie, null pointer)
2002-05-31 03:38:01 +00:00
Bill Currie
bebf3f9599
massive speedup to noise_diamondsquare (not that it /really/ matters:)
2002-05-28 05:34:06 +00:00
Bill Currie
7a3b63418b
`adequate' temporary fix for r_lightmap_components 1
2002-05-28 04:11:40 +00:00
Bill Currie
f3132162ae
speedup r_lightmap_components 3 by ~4.2% in null-render
2002-05-28 03:49:13 +00:00
Bill Currie
101d38bd0c
two win32 fixes for gcc 3.1
2002-05-28 03:33:03 +00:00
Bill Currie
acdd37b381
this seems to give ~2.9% speed boost to overkill for null-render
2002-05-28 00:04:01 +00:00
Ragnvald Maartmann-Moe IV
802bcc2762
Another 0.657% speedup for greyscale lighting. Unfortunately, at a price of considerable code duplication. But this is necessary for other planned changes.
2002-05-26 08:56:48 +00:00
Ragnvald Maartmann-Moe IV
6c8e2c24aa
*grumbles about old gcc*
2002-05-26 07:07:10 +00:00
Brian Koropoff
75ec7de2f5
This better actually fix the lightmap code.
2002-05-25 21:55:34 +00:00
Brian Koropoff
ddd96312b1
Removed useless dereferencing. With any luck I understand what despair's
...
code is supposed to do this time.
2002-05-25 20:04:42 +00:00
Ragnvald Maartmann-Moe IV
b7900a2c43
Undo snax's order of operation breakage, and fix the typo that broke lightmap merging for r_lightmap_components 1.
...
The real problem with greyscale lighting, is in brush model loading. It'll probably take me a while to sort it out, since taniwha didn't get to it before taking off for the weekend. Sorry...
2002-05-25 15:01:23 +00:00
Brian Koropoff
11a14c077e
Small order-of-operations fix.
2002-05-24 23:32:34 +00:00
Ragnvald Maartmann-Moe IV
2fe76b39e7
Smarter lightmap handling code. Still considerable optimization possible, at expense of duplicate code.
2002-05-24 17:12:41 +00:00
Brian Koropoff
ee5d0b7a99
Added r_farclip to control the far clipping plane.
2002-05-20 05:11:12 +00:00
Bill Currie
9d59915fdc
it's a little hacky, but this might do better with keeping vid_gamma_avail
...
straight.
2002-05-17 03:17:33 +00:00
Bill Currie
6a5bbf6f0a
memory allocation checking cleanup
2002-05-14 06:37:28 +00:00
Bill Currie
44dcf74627
strip the \n from all(?) of the Sys_Error calls (Sys_Error itself will be
...
adding \n).
2002-05-14 06:12:29 +00:00
Bill Currie
44f9700ed2
two spelling correctsions are remove a redundant VectorCopy
2002-04-30 16:37:11 +00:00
Brian Koropoff
942b3c2744
Floating point value of fov is now used.
2002-04-29 22:03:33 +00:00
Bill Currie
a1fef28b60
fix the sw32 fov caps so it maches sw and gl
2002-04-29 17:21:52 +00:00
Jeff Teunissen
2711cbbe7c
Don't restore gamma if it's never been initialized. :)
2002-04-28 09:03:50 +00:00
Brian Koropoff
ff901a312f
Added argument-list functions to EXP with trig and inverse trig functions
...
to start. More will follow. Switched to doubles from floats and allowed
numbers with exponents to be parsed properly. Also changed the number of
significant digits printed to 10. Changed fov so it is now capped at 1,
not 10. The float value of fov is now used instead of int, so more
precision can be attained at small values.
2002-04-28 08:30:54 +00:00
Bill Currie
a59e509033
Multi_key (K_COMPOSE) and Menu (K_MENU) are now supported
2002-04-27 00:25:40 +00:00
Bill Currie
a5dc496c38
support the printscr key in X
2002-04-27 00:07:47 +00:00
Jeff Teunissen
411ade4ce2
Fix gamma again. Also some minor whitespace and slight code cleanup.
2002-04-26 20:25:01 +00:00
Bill Currie
ac73653741
XPutImage returns 0 for success, not error
2002-04-26 18:55:37 +00:00
Bill Currie
89f7604d40
VID_GetGamma neither compiles nor is needed :)
2002-04-25 21:54:07 +00:00
Chris Ison
54ed05e52b
changed sig handling to allow for core dumps etc, like x11 and glx
2002-04-25 21:51:47 +00:00
Jeff Teunissen
b75d50d088
X11 gamma restoration now works properly for systems with a normal gamma that
...
uses all three components (red, green, blue).
Next up: three-component internal gamma.
2002-04-25 20:53:15 +00:00
Jeff Teunissen
c877ba7fbd
System gamma is now restored properly in X11.
2002-04-25 20:28:15 +00:00
Jeff Teunissen
7c134a6f95
Fix up the watervis stuff. Whoops! :)
2002-04-25 14:34:15 +00:00
Jeff Teunissen
5b069de40c
Redo r_wateralpha so that it doesn't force its value based on the watervis
...
serverinfo. Instead, create a new cl_wateralpha float variable that is set to
r_wateralpha->value in Host_Frame, and use that float during rendering.
2002-04-25 12:51:04 +00:00
Bill Currie
da994c16e5
rewrite R_SplitEntityOnNode to be itterative rather than recursive (using
...
a static `stack') to avoid the function call overhead. this cuts about 40%
of the execution time from this function.
No matter what I tried, best results were obtained using __builtin_expect,
so make sure non-gcc compilers do the right thing when they encounter it.
2002-04-25 04:32:55 +00:00
Brian Koropoff
4cb89c69b2
Moved commands from bound keys into a separate buffer, changed the syntax
...
of for loops to be like that of C, changed math expressions to be
enclosed in #{} instead of #().
2002-04-17 07:05:43 +00:00
Jeff Teunissen
a4f3973ef1
Add multitexture support for Alias models, and disable the multitexture
...
support for BSP models, until they can be fixed. gl_multitexture should now
actually be a speedup!
NOTE: Some OpenGL implementations have trouble with the texture function
used. 3Dfx Voodoo 1/2 are known to have this trouble. I don't know how to fix
this, or even if it can be fixed. :/
2002-04-16 16:51:35 +00:00
Chris Ison
347cdc5e33
some small performance optimizations with textures and animations
2002-04-15 03:26:08 +00:00
Bill Currie
b4c8546169
add the keyhelp command. think xev
2002-04-13 04:56:00 +00:00
Bill Currie
a974eb2333
move buildnum.c to util and make nq and qw init more similar
2002-04-11 18:42:55 +00:00
Bill Currie
ba9ad15ebd
it he's if I understand that Draw_CachePic puts the pic into the cache...
2002-04-10 06:56:25 +00:00
Bill Currie
0855e018dd
d'oh, bloody gcc 2.95 builtin prototypes
2002-04-10 01:38:21 +00:00
Bill Currie
15e17acc1c
the draw api now uses a `real' qpic_t rather than loading the pic every time
2002-04-09 21:38:41 +00:00
Bill Currie
ea9c1fc4ac
setenv isn't as portable as one could wish...
2002-04-07 04:45:02 +00:00
Robin Redeker
adca50e52b
Did further working on the menu code.
...
Added a _unfinished_ Player options-submenu, for setting
the name, top-/bottomcolor.
Added Draw_Fill and such to the progs api.
Added some comments.
2002-03-16 20:22:01 +00:00
Bill Currie
51805ebd92
nothing much, just give wildcode a 30% speed boost. Basicly, stop binding
...
a texture for every single brush poly: due to texsort, they will come in
batches.
2002-03-16 09:25:06 +00:00
Bill Currie
180c517771
signal handling improvements
2002-03-13 19:20:57 +00:00
Bill Currie
1d420edcd0
start work on instrumenting GLstub.so
2002-03-11 23:55:50 +00:00
Bill Currie
26d7463be7
the majority of raptor's sgi build patch. I'll look at the last two bits
...
(server.c and vid_sdl.c) later.
2002-03-03 06:03:51 +00:00
Bill Currie
009e6346fe
now, so long as ulimit allows it, we can always get a core dump. Looks a
...
little odd:
Received signal 11, exiting...
IN_Shutdown
IN_LL_Shutdown
VID_Shutdown
Segmentation fault (core dumped)
but the core file does accurately show the error
2002-02-27 06:55:21 +00:00
Bill Currie
2f62b744fa
After an interesting discussion with Lordhavoc, make the GPU do more work in
...
the background. This is achieved by doing only a (qf)glFlush at the end of
the frame, doing the inter rendering-frame processing (ie, client frame
processing), glFinish, glXSwapBuffers, then starting the next frame. I've
changed the glFinish call in SCR_UpdateScreen to glFlush and the glFlush
call in GL_EndRendering to glFinish because there's no point in calling
glFinish followed by glFlush. Also, SwapBuffers should always be precedded
by glFinish rather than just glFlush (in Lordhavoc's experience). The
GL_EndRendering at the end of SCR_UpdateScreen got moved to the beginning.
2002-02-27 05:22:21 +00:00
Bill Currie
cfb6c1db0a
first stab at hardware gamma support for windows. WILL screw up system gamma :)
2002-02-26 00:14:16 +00:00
Bill Currie
29706477d4
gl_driver default is now configurable
2002-02-22 08:55:24 +00:00
Bill Currie
972bd8852b
rewrite QFGL_ExtensionAddress to just use QFGL_ProcAddress and be done with
...
it. hopefully this will fix raorn's crash.
2002-02-21 07:56:27 +00:00
Bill Currie
af663488c8
print out the error string when failing to get shared memory
2002-02-13 08:35:46 +00:00
Bill Currie
72bd704d13
BSD compile fixes
2002-01-31 07:37:56 +00:00
Bill Currie
0906ac5694
get the positioning correct for Draw_CenterPic
2002-01-29 18:44:31 +00:00
Bill Currie
750100b3e3
obsolete declaration cleanup and const correctness for Key_GetBinding
2002-01-25 00:01:05 +00:00
Bill Currie
5b0e6dc342
add file and string modules to csqc. the file nodule is rather parnoid
...
about the path it's handed (need to get even more paranoid, though). the
string module just has char replacement so far. Add Draw_CenterPic to
r_progs.c, but this will only last till qpic_t is supported in qc.
the load menu almost works: just need to add key handling and fix a bug in
PF_sprintf
2002-01-21 07:24:51 +00:00
Bill Currie
bb82e48ab1
add Draw_String to csqc
2002-01-20 00:03:34 +00:00
Bill Currie
84636f20cb
make sure r_progs gets linked in when using the .a lib
2002-01-19 22:53:00 +00:00
Bill Currie
6767d6bfa0
win32 compile fixes
2002-01-19 20:45:45 +00:00
Bill Currie
15e7e35a57
make K_ESCAPE bindable
2002-01-19 02:29:29 +00:00
Bill Currie
fcc9cbf3b7
the main menu page now displays and can be entered/left. K_ESCAPE is now
...
handled exclusively by the console.
2002-01-18 23:45:28 +00:00
Bill Currie
10acad1ee4
first tie-in for the renderer (Draw_Pic: the interface will likely change
...
to better match the real interface, but this will do for now)
2002-01-18 22:35:46 +00:00
Chris Ison
e3b2bfb81a
clear key states on game start
2002-01-17 22:04:58 +00:00
Bill Currie
9e5c7da8e6
move the chat code from keys.c to client.c.
...
oops, chat just got input history, dear me
2002-01-16 23:06:28 +00:00
Bill Currie
c86c5a78bf
finally, the client console is merged
2002-01-16 21:53:42 +00:00
Seth Galbraith
0dcfc6dfb4
load tga versions of .lmp files if present
2002-01-16 01:59:05 +00:00
Seth Galbraith
9c1969146c
cleanup, implemented tga loading for gfx.wad files
2002-01-15 21:05:34 +00:00
Bill Currie
9d59d953bd
more cleanups
2002-01-12 05:32:21 +00:00
Seth Galbraith
5f4c7ee7bd
implemented VP_PARALLEL_UPRIGHT - ask about my Mighty Oak
2002-01-11 03:00:32 +00:00
Seth Galbraith
7dc5b587f8
also try to load skies from gfx/env as darkplaces does
2002-01-11 01:26:21 +00:00
Bill Currie
6132049bf4
gl_draw.c: whitespace
...
draw.c: (both sw and sw32) fix Draw_nString to be similar to gl_draw.c
2002-01-10 20:19:22 +00:00
Chris Ison
859c18dc07
tidy up Draw_String calls and switched to Draw_nString were needed
2002-01-10 03:54:00 +00:00
Chris Ison
6073ff8d58
added Draw_nString for displaying a non \0 terminated string
2002-01-09 21:20:22 +00:00
Bill Currie
96c7159f66
keep track of the times of the last event (for those events that report time)
...
and use that instead of CurrentTime in the X selection code (as recommended
by the ICCCM)
2002-01-08 20:07:19 +00:00
Bill Currie
6633ea0273
correct a typo in a comment
2002-01-08 19:38:36 +00:00
Bill Currie
c84e5b2ac0
re-write the X selections support to be more ICCCM compliant (selections in
...
xchat can now be pasted to qf)
2002-01-08 19:33:42 +00:00
Bill Currie
9ba80eb4d9
use Hunk_TempAlloc instead of realloc for the alias model verts
2002-01-07 16:43:47 +00:00
Bill Currie
c1c76f7058
whitespace
2002-01-07 06:50:41 +00:00
Bill Currie
72d6f34dc8
first step to using a saner internal represnetation for the high precietion
...
models.
2002-01-07 06:32:46 +00:00
Bill Currie
14fb289f2f
duplicate GL_GetAliasFrameVerts so 16 bit alias models don't cost so much
...
even when they aren't being used.
2002-01-07 03:46:56 +00:00
Bill Currie
b582a02aff
fix the broken lighting for unlerped verteces
2002-01-07 01:05:44 +00:00
Ragnvald Maartmann-Moe IV
f8daa09bcb
Fix software scrag missile trails, and add a minor optimization to them and hell knight's fire wave trails.
2002-01-06 23:12:09 +00:00
Ragnvald Maartmann-Moe IV
097ff0006f
Rearrange vertex order in quads.
2002-01-06 22:43:51 +00:00
Seth Galbraith
0a7ddae612
move high precision check out of loop to optimize sw model rendering
2002-01-05 20:00:50 +00:00
Ragnvald Maartmann-Moe IV
aa36ebf6e4
Little bit of whitespace cleanup.
2002-01-05 19:03:36 +00:00
Seth Galbraith
1e57bcdca2
no more hardcoded MAXALIASVERTS limit
2002-01-05 17:56:33 +00:00
Seth Galbraith
cb6ef3e225
putting if outside the for loop should speed things up
2002-01-05 16:53:43 +00:00
Seth Galbraith
ac5b6823c6
high precision model rendering in GL
2002-01-05 16:20:38 +00:00
Ragnvald Maartmann-Moe IV
a18fdbca68
Minor clarification in pt_fire ramp aging, plus reduce VectorScale use in fixed distance trails from once per particle to once per trail.
2002-01-05 07:23:23 +00:00
Seth Galbraith
42456845f0
high precision software mdl rendering
2002-01-05 03:21:02 +00:00
Bill Currie
df947a8843
pt_color is now an int so don't convert it
2002-01-04 04:12:10 +00:00
Ragnvald Maartmann-Moe IV
b13efc3a83
Particle updates. Some cleanups, small speedups, and reimplement id's effects. r_particle_styles 0 to see id's effects.
2002-01-04 03:32:59 +00:00
Ragnvald Maartmann-Moe IV
07fb841a49
Whitespace, mark a 1 line function as inline.
2002-01-04 03:25:30 +00:00
Bill Currie
9312681182
some more const correctness (in gl_sky_clip.c) and make the sky poly debug
...
drawing avialable via the gl_sky_debug cvar.
2002-01-03 18:18:45 +00:00
Bill Currie
013f503738
start getting const-correct on vec3_t params
2002-01-03 05:29:38 +00:00
Bill Currie
c68da1f299
o split up GL_DrawAliasFrame so it's normal (ie, not fullbright) pass only
...
creating GL_DrawAliasFrame_fb to do the fullbright pass. This removes
the if (fb) tests.
o move the DepthMask setting for modelalpha != 1.0 out of
GL_DrawAliasFrame* into R_DrawAliasModel to reduce potential GL state
changes.
o minor comment cleanup/corrections
2002-01-02 19:23:09 +00:00
Ragnvald Maartmann-Moe IV
29b48c594e
More tweaks to joystick code. amp settings have a far greater effect now...
2001-12-30 06:08:24 +00:00
Bill Currie
3cfd2c0a8e
make GL_DrawAliasShadow use the data calculated by GL_GetAliasFraveVerts so
...
shadows don't cost as much when lerping is enabled.
2001-12-30 04:16:25 +00:00
Ragnvald Maartmann-Moe IV
c523671606
Joystick updates. Now support 8 joystick axes (since I have a 7-axis gamepad I'm testing with). Also adds swimup/swimdown as axis 5. And ability to invert axes by assigning them as negative numbers (set joyaxis1 "-1"). Joystick handling is liable to change radically as it improves, though, don't count on these as stable interfaces...
2001-12-28 18:02:33 +00:00
Bill Currie
0f2f58754b
this is just causing confusion. if we ever need it, it's still in cvs
2001-12-21 22:39:14 +00:00
Bill Currie
ee9ed0c395
minor cleanups
2001-12-21 21:52:03 +00:00
Bill Currie
7f9e5755fb
go back to my clever code (with the bug fixed this time:P). Hey, if it's
...
still broken, we can always revert it again ;) (NOT!)
2001-12-21 20:56:54 +00:00
Bill Currie
168d3aa308
tiny speedup to texture uploads
2001-12-21 20:12:51 +00:00
Bill Currie
825b02ad87
minor speedup to skybox loading ;)
2001-12-21 06:07:30 +00:00
Ragnvald Maartmann-Moe IV
010ca032a5
Allow arbitrary power of 2 sizes for tga texture loads, reduce memory footprint needed to load rgb tgas. Speed load of non-RLE tgas.
...
Some slight code sanity improvements.
2001-12-21 01:41:19 +00:00
Bill Currie
ec44f037c1
remove the obsolete z buffer prototype code
2001-12-20 05:16:59 +00:00
Ragnvald Maartmann-Moe IV
018481b1ac
Might as well allow gl_affinemodels to affect the viewmodel as well...
2001-12-19 20:15:38 +00:00
Ragnvald Maartmann-Moe IV
e78bdb3ea6
Fix failure to free cache for non-shadowed stuff (lightning, grenades, etc).
...
Also a minor speedup (only mess with glHints once per frame, instead of dozens of times).
2001-12-19 18:32:26 +00:00
Ragnvald Maartmann-Moe IV
c764ddc64a
Just a massive speedup to gl particles. Enjoy.
...
(Thanks to LordHavoc for prodding me to use glDrawElements, and munge all the particle textures into 1. Code mine, suggestions his)
2001-12-19 04:03:57 +00:00
Bill Currie
5d643c2483
tiny optimisation to GL_GetAliasFrameVerts
2001-12-18 05:50:57 +00:00
Chris Ison
73f9c3aaa5
some minor tidy/speed up
2001-12-18 03:59:37 +00:00
Chris Ison
1c26723864
changed int to an unsigned int
2001-12-17 23:41:58 +00:00
Chris Ison
db71398238
removed row and col usage from Draw_Character
2001-12-17 23:10:00 +00:00
Bill Currie
9b4e21a914
minor prototype cleanups
2001-12-14 00:06:58 +00:00
Bill Currie
b3843f7f5b
draw.h:
...
remove dead Draw_TransPic prototype
draw.c:
really don't draw spaces in Draw_AltString
2001-12-13 19:13:22 +00:00
Ragnvald Maartmann-Moe IV
f66b7a93e5
Major particle interface cleanup, several bugfixes, and minor performance improvements. Oh, check out "/help easter_eggs" (gl-only, at the moment).
2001-12-11 22:37:30 +00:00
Ragnvald Maartmann-Moe IV
e9690c8ee9
Whitespace.
2001-12-11 20:36:23 +00:00
Ragnvald Maartmann-Moe IV
d4a8224d9b
Change hudswap to use a callback, and instead of passing a swap variable to 10 functions, where only 2 use it, use a global variable. Make a few scr functions static inline, too. Got a totally unexpected ~0.45fps speedup.
2001-12-09 14:05:30 +00:00
Ragnvald Maartmann-Moe IV
f9d3f9f017
Remove dead cvar.
2001-12-09 07:43:58 +00:00
Bill Currie
b52606aed2
*sigh* Turns out id didn't feel like fixing the bugs in progs so don't blat
...
out frame errors under normal circumstances.
2001-12-08 20:58:09 +00:00
Bill Currie
52b0c8f3fc
how me a repeatable bug and I'll show you a dead bug }:>
...
(this fixes the "Cache_Free: not allocated" crash)
2001-12-04 17:46:42 +00:00
Ragnvald Maartmann-Moe IV
20690b71e0
Argh! Try #2 .
2001-12-03 11:46:30 +00:00
Ragnvald Maartmann-Moe IV
43b31965a2
Back out local changes that shouldn't have been committed along with the rename to r_particles_max.
2001-12-03 11:08:10 +00:00
Ragnvald Maartmann-Moe IV
29a8d84806
cl_maxparticles to r_particles_max. annoying, but makes cl_ tab-completion less so.
2001-12-03 08:55:46 +00:00
Bill Currie
9bf575d081
several little tweaks that more than make up for the reversion of low-copy
2001-12-03 08:46:56 +00:00
Bill Currie
4f2f686834
r_netgraph_alpha works again
2001-11-30 03:51:43 +00:00
Ragnvald Maartmann-Moe IV
dea0a2c08d
Whitespace.
2001-11-25 08:00:16 +00:00
Bill Currie
1cdf7fa55f
clean up the math for id skys a little. doesn't fix the sillyness, but that's
...
caused by the deliberate texuture wrapping and I think gl isn't coping well
with that when the texture coords wind up getting swapped due to the wrap.
2001-11-25 07:41:17 +00:00
Bill Currie
e99b422628
extinguish gl_fires. it's semi-broken, generally nasty (code wise) and
...
kinda tacky. also results in a slight speed boost:)
2001-11-25 06:24:26 +00:00
Ragnvald Maartmann-Moe IV
4d406337b6
Move gl_fires into gl, where it belongs.
...
Also some small cleanups in particles.
Brighten grenade smoke a tiny bit, so it's not so invisible in the typically dark quake areas.
And some minor cleanups to water rendering.
2001-11-24 08:21:07 +00:00
Ragnvald Maartmann-Moe IV
405e8fffc9
Whitespace.
2001-11-24 08:16:43 +00:00
Ragnvald Maartmann-Moe IV
2c8d802935
Whitespace.
2001-11-24 08:08:44 +00:00
Bill Currie
8826bdd9dc
nuke the d_subdiv16 cvar as its sole user got nuked in the previous commit
2001-11-21 19:24:57 +00:00
Bill Currie
0be2a31f2e
lots of code cleanup. Merge Mod_LoadAllSkins, merge the sw32 model loading
...
code into the sw model loading code, remove all refs to r_pixbytes from the
sw renderer (it was never anything but 1), kill libQFmodels_sw32, remove
all the 16 bit code from the 8 bit sw renderer.
2001-11-21 19:13:53 +00:00
Bill Currie
61382f4967
make absolutely certain skin->fb_texture is 0 if there are no fb pixels in
...
the skin texture.
2001-11-21 08:26:21 +00:00
Bill Currie
7d14013041
fix many, many bugs in the alias skin loading, transforming and rendering
...
code. This fixes blather's `melted models' (sw), the nq alt player model
skins (gl), the arbitrary limits on skins and skin groups in gl, and the
incorrect timing of group skins (animated) in gl.
2001-11-21 08:14:05 +00:00
Chris Ison
3e34fc83e4
-3dfx re-enabled
2001-11-21 02:36:48 +00:00
Bill Currie
bc95116825
fix a defined but not used warning
2001-11-20 23:22:19 +00:00
Ragnvald Maartmann-Moe IV
3f79367865
Minor rendering cleanup, also may help rendering speed when r_wateralpha = 1, by playing with draw order.
2001-11-20 09:41:15 +00:00
Ragnvald Maartmann-Moe IV
b836566a3d
Fix particle physics bug with blob2 particles.
...
(thanks to taniwha for pointing out half of the fix I was missing)
2001-11-20 08:31:27 +00:00
Bill Currie
5dab7ccaf7
precalculate smoe model specific info (wether the whole model is fullbright,
...
if it should have shadows, whether it should be scaled/translated (gl eyes),
and the minimum lighting (player)). give a 1.9% speedup in null renderer.
2001-11-20 08:02:35 +00:00
Ragnvald Maartmann-Moe IV
b69e372589
Whitespace.
2001-11-20 06:57:31 +00:00
Bill Currie
025d520522
remove some dead code
2001-11-20 04:48:04 +00:00
Bill Currie
4c628d0c04
fbdev stuff is now warnings clean, so all -Werror for it
2001-11-20 03:40:57 +00:00
Bill Currie
46835e79fe
more quakeforge compiling on alpha patches
2001-11-17 05:26:30 +00:00
Chris Ison
5c26b54697
remove smoke I added thismorning
2001-11-15 23:36:14 +00:00
Chris Ison
0e5262c2ea
colored explosion smoke
2001-11-15 20:53:23 +00:00
Bill Currie
267e51eaaf
while cute, cl_surprise is just way too expensive when gains are measured in
...
fractions of a percent, and a loss is 3%.
I hate doing this sort of thing :(
2001-11-15 01:37:57 +00:00
Chris Ison
8d50c8ea47
added cl_surprise cvar for easter eggs
2001-11-14 21:46:50 +00:00
Chris Ison
c72e2ef324
re-enable 8bit textures
2001-11-14 21:01:10 +00:00
Bill Currie
e91180cccf
this should take care of wildcode's 8 bit issues
2001-11-14 16:36:42 +00:00
Bill Currie
50f2d46398
various cleanups
2001-11-12 20:58:06 +00:00
Bill Currie
d168a3daee
this should remove the requirement for gmake on bsd systems
2001-11-12 16:23:41 +00:00
Ragnvald Maartmann-Moe IV
1dfd2d4eaf
More use of mathlib, and some small optimizations.
2001-11-09 18:51:33 +00:00
Ragnvald Maartmann-Moe IV
3d572df460
Bug fix (we weren't removing particles from the list until the frame after they died, which caused particle slots to be wasted).
...
Fix for a bug in particle trail pre-aging (sometimes created some 0 age particles).
And a couple small optimizations.
2001-11-09 12:09:46 +00:00
Ragnvald Maartmann-Moe IV
f60c39e0bc
Whitespace.
2001-11-07 06:59:10 +00:00
Ragnvald Maartmann-Moe IV
14aa428871
Switch to dot texture for sparks, and drop particle size. A little less cartoony effect.
2001-11-07 06:57:34 +00:00
Ragnvald Maartmann-Moe IV
f2f8513141
Reduce number of rand() calls in teleport and lava splash effects. Also preserves entropy, and we all know how important that is!
2001-11-06 21:02:18 +00:00
Ragnvald Maartmann-Moe IV
ceb307aead
Cleanups, whitespace, convert some ints to unsigned int. Whee!
2001-11-06 05:06:37 +00:00
Ragnvald Maartmann-Moe IV
1c5701f51f
Fix a few minor quirks with particle trails.
2001-11-06 04:42:17 +00:00
Ragnvald Maartmann-Moe IV
6af4eae1e5
Couple of cleanups (remove unused variables) and a small optimization.
2001-11-05 14:59:05 +00:00
Ragnvald Maartmann-Moe IV
069ad1bfb1
Change r_lightmap_components default to 3. Looks like Nvidia fixed that horrid slowdown for 3 component texture uploads. :)
2001-11-05 10:11:21 +00:00
Bill Currie
dc779acdb5
build the texture chains such that they get rendered front to back. seems to
...
only get about 0.17% speedup in overkill (with just about every thing off),
but it might make more of a difference in-game.
2001-11-05 06:20:35 +00:00
Bill Currie
9f4a565523
rename some get_key functions so they're all uniqely named (matters only for
...
profiling purposes thanks to static:)
2001-11-05 03:21:42 +00:00
Ragnvald Maartmann-Moe IV
a856cbc413
Fix for r_lightmap_components 4 weirdness.
2001-11-04 20:58:46 +00:00
Ragnvald Maartmann-Moe IV
a2ed608ee7
Some more small speedups.
...
Not entirely thrilled with R_BuildLightMap inside 'store:'. Macros are a pain to work around...
2001-11-04 16:57:47 +00:00
Ragnvald Maartmann-Moe IV
dbb6e37bb7
Remove some unneeded variables.
...
Speed lightmap calculations up for r_lightmap_components 1.
Enough to give a 4.4% speedup to timedemo overkill.
Hint: int/float/int conversions are expensive.
2001-11-04 11:20:35 +00:00
Ragnvald Maartmann-Moe IV
fd19f9332d
Tiny comment cleanup
2001-11-04 08:50:16 +00:00
Ragnvald Maartmann-Moe IV
de0b4f65fa
modelalpha and currenentity cleanups.
2001-11-04 07:40:35 +00:00
Ragnvald Maartmann-Moe IV
961ea0b693
Move cshift render to before hud/text render, so that you can still read it while heavy cshift action is happening.
2001-11-03 07:50:57 +00:00
Ragnvald Maartmann-Moe IV
e8b36b1a71
Remove unused R_CullBlocked.
2001-11-03 07:30:15 +00:00
Ragnvald Maartmann-Moe IV
08a211385f
Optimize some redundant math out of the particle aging loop.
2001-11-02 21:12:09 +00:00
Ragnvald Maartmann-Moe IV
3958b4a4b3
Age particle trails based on position in trail, during creation.
2001-11-02 20:47:47 +00:00
Bill Currie
7b4e5e69af
now actually works (especially for double scan modes and the like)
2001-11-02 06:43:41 +00:00
Ragnvald Maartmann-Moe IV
c19c237e0e
Whitespace.
2001-11-02 06:35:32 +00:00
Bill Currie
a98c5bb4c1
fix vid_fullscreen toggling (sgl) and archiving (all)
2001-11-02 06:11:32 +00:00
Bill Currie
a45b78b622
make all 8 X buffers available. no args uses the default buffer, giving 0-7
...
as an agument to in_paste_buffer specifies which buffer to use.
2001-11-01 22:52:22 +00:00
Bill Currie
9b8995b836
fix win32's missing clipboard support (bringing it back). some trickery will
...
be required to get ctrl-V working, but... *shrug*
2001-10-30 22:46:15 +00:00
Ragnvald Maartmann-Moe IV
d1c115da05
Whitespace.
2001-10-30 19:58:01 +00:00
Ragnvald Maartmann-Moe IV
3ad79cc970
Change particle limit from a short to an unsigned int. Possibly a tiny speedup, also allows for absurd particle counts...
2001-10-30 19:42:29 +00:00
Bill Currie
4685fccbac
new command for -x11 and -glx: in_paste_buffer (eg in_bind imt_console
...
m_button3 in_paste_buffer). Makes X's clipboard available to quake (for
pasting:)
2001-10-30 18:20:56 +00:00
Bill Currie
d835b79352
this might fix the black screen in 8 bit X
2001-10-29 22:29:42 +00:00
Bill Currie
00514d744e
this should fix the skating statues
2001-10-29 19:38:20 +00:00
Bill Currie
85c9e0ab1e
more externs cleaned up
2001-10-29 17:46:03 +00:00
Bill Currie
8071e8398a
put a couple externs back for win32. they need a bit more thought on how to
...
arrange things.
2001-10-29 16:45:03 +00:00
Bill Currie
1d442c496f
setup the colormap /before/ calling Vid_InitGamma so VID_SetPalette gets
...
called with a valid colormap to update.
2001-10-29 06:46:46 +00:00
Bill Currie
78a3e398d5
* taniwha gets medieval on extern
2001-10-28 04:23:37 +00:00
Ragnvald Maartmann-Moe IV
5afce455df
Undo taniwha's debugging insanity.
...
If you want to test for injecting more particles than can fit in the list, particle_new is the right place for the test. It's even there already, just commented out.
2001-10-28 00:47:21 +00:00
Bill Currie
10d83e090a
externs in .c files are evil, evil evil (ok, so I haven't cleaned these ones
...
out yet:P). This fixes the recent GL crash.
2001-10-27 22:27:32 +00:00
Bill Currie
3601b5ba35
fix the minor breakage were /no/ particles were being generated
2001-10-27 21:39:58 +00:00
Bill Currie
74d3499f74
fix a seg caused by my changes from last night
2001-10-27 20:52:33 +00:00
Bill Currie
014785a9f2
lots of error checking for our phantom particle bug, but I was unable to
...
trigger it after 2h of play using the previous changes
2001-10-27 08:32:52 +00:00
Bill Currie
d9fd8dc29f
make r_particles truely a flag and call R_MaxParticlesCheck when r_particles
...
changes
2001-10-27 08:31:45 +00:00
Bill Currie
1fab17ab33
d'oh. must read the clode closer :P
2001-10-26 05:31:39 +00:00
Adam Olsen
3bba5398ba
- audit malloc usage. now everything checks the return value :)
2001-10-24 22:50:06 +00:00
Bill Currie
552a486d87
fix the libQFrenderer_sw.lai installation error. libtool requires -rpath
...
for /any/ installed lib, static or not.
2001-10-24 17:54:56 +00:00
Adam Olsen
dd19f7b500
- convert svc_deltapacketentities
...
- add a Host_NetError that dumps a packet log and disconnects, and use
it instead of Host_EndGame in most cases
- fix a couple multiply-defined vars
2001-10-24 15:23:02 +00:00
Bill Currie
8e9505c100
/finally/ get asm in the sw renderer when not using --disable-shared. libtool
...
was using the wrong objects.
2001-10-23 18:48:49 +00:00
Bill Currie
bf309fb554
split the sprite and alias model rendering code out from gl_rmain.c into
...
their own files.
2001-10-23 17:20:56 +00:00
Bill Currie
6a5e3edcf7
and extern fixes for the windows side
2001-10-23 17:11:48 +00:00
Bill Currie
b5341f0d13
we now compile and link with -fno-common. this cleans up the multiple,
...
uninitialized declarations of variables.
2001-10-23 16:55:23 +00:00
Bill Currie
fa95bd35aa
fix a really stupid brainfart that caused shift states to not work
2001-10-23 01:53:51 +00:00
Bill Currie
b6ad2223d2
attempt to handle the byte swapping of screenshots seen on voodoo2s in
...
windows
2001-10-22 19:46:34 +00:00
Bill Currie
1d697dc90d
give in_win keyboard shift states for ascii conversions
2001-10-22 16:07:26 +00:00
Bill Currie
3252ee3eb6
fix the mangled key codes
2001-10-22 05:07:15 +00:00
Bill Currie
52252616ff
pull the input code out of vid_wgl into in_win
2001-10-22 04:13:56 +00:00
Bill Currie
82aa0fde58
fix -wgl's keyboard input
2001-10-22 02:33:19 +00:00
Bill Currie
9a5ec9c187
ok, qw-client-wgl.exe works now (helps if scr_width and scr_height are set)
2001-10-22 02:15:30 +00:00
Chris Ison
2467671c72
removal of tdfx_brighten in preparation for gl_brighten
2001-10-21 21:29:54 +00:00
Bill Currie
e1fc77dd2b
fix a crasher in win32. I don't know if linux crashed, but it should have.
2001-10-21 03:48:02 +00:00
Bill Currie
b3914eeaaa
elimination of bare printf (with some exceptions) from libs: Sys_Printf is
...
used instead
2001-10-18 16:42:14 +00:00
Bill Currie
e765321452
wgl funcs are likely GLAPIENTRY type too :)
2001-10-16 22:37:11 +00:00
Bill Currie
2d068c0745
massive windows.h and WIN32 cleanup.
2001-10-16 21:40:45 +00:00
Jeff Teunissen
ce740fb4ec
Joystick target fixed.
2001-10-16 05:06:31 +00:00
Bill Currie
8417d23a94
fix a nasty seg on gl startup causes by looped function pointers
2001-10-16 04:11:25 +00:00
Bill Currie
376a9105fa
oops
2001-10-15 23:16:42 +00:00
Bill Currie
3402dfd51a
libasm improvements
2001-10-15 23:09:03 +00:00
Jeff Teunissen
2e4d8d1473
Makefile fixes -- video driver libs are gone.
2001-10-15 22:32:28 +00:00
Jeff Teunissen
10424a5015
*** empty log message ***
2001-10-15 22:28:05 +00:00
Bill Currie
460a270a54
fix some init order issues brought up by the new gl_funcs.c code.
2001-10-15 19:06:22 +00:00
Bill Currie
fd25261ab3
hopefully better win32 dynamicly loaded gl support. if nothing else,
...
gl_funcs.c is easier to read :)
2001-10-15 18:24:30 +00:00
Bill Currie
41d01d54f9
put the INITGUID definition in the correct place
2001-10-15 17:32:43 +00:00
Bill Currie
f7b82bcb69
comment out the definition of INITGUID for now as it's causing linking problems
2001-10-15 16:30:15 +00:00
Bill Currie
62873d6980
diff snr --
2001-10-11 17:31:41 +00:00
Bill Currie
49fe4e9f05
fix a misplaced s&r
2001-10-11 06:54:29 +00:00
Ragnvald Maartmann-Moe IV
1674e6a763
Clean up of models that are always fullbright.
2001-10-10 05:00:30 +00:00
Ragnvald Maartmann-Moe IV
db87121c2b
Whitespace.
2001-10-10 04:59:43 +00:00
Ragnvald Maartmann-Moe IV
86a82b895d
Whitespace.
2001-10-09 21:57:49 +00:00
Bill Currie
a65d98a35c
r_dlight_max can now safely be 0
2001-10-09 21:50:51 +00:00
Ragnvald Maartmann-Moe IV
9cc671e6d2
Try #2 .
...
Change r_maxparticles from short to unsigned int.
Make MAX_DLIGHTS into a cvar, r_dlight_max that sets the unsigned int r_maxdlights.
2001-10-09 20:35:17 +00:00
Bill Currie
757a0f690c
fix a missing #ifdef HAVE_VIDMODE
2001-10-06 22:57:54 +00:00
Ragnvald Maartmann-Moe IV
24e80b21d4
Whitespace. Hiding commented out code is bad.
2001-10-06 01:14:23 +00:00
Ragnvald Maartmann-Moe IV
d657a590b5
Clean up extern functions, update noise_diamondsquare to match LordHavoc's fractalnoise.
2001-10-06 00:39:22 +00:00
Ragnvald Maartmann-Moe IV
8afd4a870e
Revert an optimization that impacts legibility more than performance.
2001-10-06 00:31:57 +00:00
Ragnvald Maartmann-Moe IV
9daba0eef7
GL string and character rendering speed up and clean up.
2001-10-05 19:01:57 +00:00
Ragnvald Maartmann-Moe IV
72b198d650
Minor cleanup.
2001-10-05 18:55:40 +00:00
Bill Currie
a1d2cf3532
duplicate file name cleanup and make dist works
2001-10-03 17:50:36 +00:00
Bill Currie
87e59c0762
finally got sw's Makefile.am working too
2001-10-03 14:59:43 +00:00
Bill Currie
9aca46416c
ok, sw32's Makefile.am now works with both 1.4 and 1.5
2001-10-03 14:49:14 +00:00
Bill Currie
95d3600452
fix skybox/skydom map vis issues. I hope this works on all drivers.
2001-10-03 02:51:30 +00:00
Bill Currie
c3735506c7
hey, I think this one is going to work!!!
2001-10-03 00:07:01 +00:00
Bill Currie
081a44e5bc
this works a smidge better
2001-10-02 23:13:54 +00:00
Bill Currie
b866bcae61
seems automake isn't too happy about nested conditionals and main vars
2001-10-02 22:36:08 +00:00
Ragnvald Maartmann-Moe IV
256f6e94c1
Broken attempt at cleaning up Makefile.am's, for taniwha's perusal.
2001-10-02 22:02:10 +00:00
Bill Currie
4699bf6d5b
files under inclue/QF are not allowed to include files from include (eg,
...
including config.h is a nono).
2001-10-02 21:14:11 +00:00
Ragnvald Maartmann-Moe IV
9c778bb539
Minor tweak of lightning sparks and teleport appearances, fix brief breakage of gl_sky_clip 1 & 2 with skyboxes.
2001-10-02 09:11:20 +00:00
Ragnvald Maartmann-Moe IV
9c21edc6d0
Whitespace.
2001-10-02 06:58:44 +00:00
Ragnvald Maartmann-Moe IV
820fcbb8d2
R_Mirror-related cleanups, and some whitespace.
2001-10-02 06:13:22 +00:00
Ragnvald Maartmann-Moe IV
5e6f77cddb
Instead of glEnable/glDisable (GL_ALPHA_TEST) pairs for every sprite rendered, let's do it once for the entire sprite loop. Minor hit when there are no sprites, but 2+ it's a gain. Better worst case, rather than better peak performance.
2001-10-02 01:48:51 +00:00
Ragnvald Maartmann-Moe IV
63ac10dfde
Clean up glDepthFunc and glDepthRange so it's properly initted, and not set needlessly every frame.
2001-10-02 00:01:05 +00:00
Ragnvald Maartmann-Moe IV
4b3c4e1eaf
Whitespace.
2001-10-01 21:52:05 +00:00
Ragnvald Maartmann-Moe IV
fce4b903eb
Fix double joystick init in sdl targets.
2001-10-01 21:50:35 +00:00
Bill Currie
c7031b20f3
move vid_fullcreen definition from *.c to vid.c and declaration from
...
context_x11.h to vid.h and remove all extern decls from *.c
2001-09-28 16:54:31 +00:00
Jeff Teunissen
e892131af5
Rename gl_libgl to gl_driver, nuke the last of the HAVE_GLX references,
...
and default gl_driver to OPENGL32.DLL on Win32.
2001-09-28 07:41:38 +00:00
Jeff Teunissen
e9c9c8bab6
fix up installs for -svga.
2001-09-28 06:55:27 +00:00
Bill Currie
b1f4a778f9
the rcsid commit from hell }:>
2001-09-28 06:26:31 +00:00
Jeff Teunissen
31b6da027c
The video version. This WILL break QW and NQ until my next commit.
2001-09-28 05:33:58 +00:00
Jeff Teunissen
325303b037
And now for the 32-bit software renderer.
2001-09-27 21:58:10 +00:00
Jeff Teunissen
4c40bad808
Okay, this ought to work for software.
2001-09-27 21:53:59 +00:00
Jeff Teunissen
be9ee170d6
Okay, the GL renderer lib is fixed up.
2001-09-27 21:47:47 +00:00
Jeff Teunissen
b794d4c316
yaay, cleaned up.
2001-09-27 21:28:44 +00:00
Ragnvald Maartmann-Moe IV
bd1465ef3e
Make blood puffs a little less ridiculously large and not overly dense.
2001-09-27 06:52:38 +00:00
Ragnvald Maartmann-Moe IV
35b767cd21
Remove scaling from R_RunParticleEffect, and make blood puff size variable in qw.
2001-09-27 03:09:24 +00:00
Ragnvald Maartmann-Moe IV
2941c07b0a
Add small cyan light to lightning impacts. And restore particle direction use in nq. Greatly improves blood effects.
2001-09-27 00:43:46 +00:00
Chris Ison
0efd28abcc
trying to get bootstrap to work in cygwin
2001-09-25 23:04:13 +00:00
Bill Currie
a439170dcf
libasm cleanups
2001-09-25 22:12:55 +00:00
Bill Currie
06da30ac89
mingw build fixes again (including mostly working in sid: got some link issues)
2001-09-25 06:18:30 +00:00
Ragnvald Maartmann-Moe IV
5330fd5651
Whoops.
2001-09-24 18:03:36 +00:00
Ragnvald Maartmann-Moe IV
e2f14519fb
Merge world.h. Also reduced smoke particle textures from 8 to 1, a considerable speedup through reduced texture thrash...
2001-09-24 17:52:13 +00:00
Bill Currie
c8ab7d04ef
fix two bugs with glx extension checking: HAVE_GLX wasn't getting into
...
config.h and GLX_ARB_get_proc_address is not (any longer?) defined by mesa.
2001-09-23 03:41:05 +00:00
Ragnvald Maartmann-Moe IV
d247027954
Use a callback for gl_multitexture which sets gl_mtex_active (now a qboolean, rather than a macro). 0.6-1.0% speedup.
2001-09-23 03:24:23 +00:00
Bill Currie
bf1920a851
don't enable mtex if the required functions cannot be found. This shouldn't
...
normally happen, but is due to a currently broken QFGL_ExtensionAddress and
causes qf to seg when mtex is requested.
2001-09-23 03:18:58 +00:00
Ragnvald Maartmann-Moe IV
bb6796247c
Kill r_particles->int_val testing in gl particle engine. Also merge a bit down to r_part.c/r_cvar.c. Properly declare cl_max_particles (how the heck was it working when only ever declared as exter cvar_t *cl_max_particles?).
...
Should be a minor speedup for gl, definitely a code cleanup.
2001-09-22 02:37:45 +00:00
Ragnvald Maartmann-Moe IV
fc1ab9640e
r_numparticles is now r_maxparticles. Ah, the joy of sane variable names.
2001-09-19 18:07:09 +00:00
Ragnvald Maartmann-Moe IV
8af9c2321d
Larger lightning sparks, and more importantly, cull particles more efficiently when bumping into max. R_LavaSplash and R_TeleportSplash need work, though.
2001-09-18 23:22:57 +00:00
Timothy C. McGrath
54e5a3e114
Fix for svgalib from joa, two liner. Very nice of him :)
...
Misty-chan
2001-09-18 22:38:08 +00:00
Adam Olsen
678068849e
James' latest fullscreen patch, which works flawlessly for me :)
...
(and if anybody cares about the formatting they can change it AFTER
this is in)
2001-09-18 09:30:59 +00:00
Adam Olsen
7c75e264c9
- build fix for fbdev
...
- minor formatting tweak for in_common.c
2001-09-18 09:19:44 +00:00
Bill Currie
b79ff6378d
mouse warpage fixes from james
2001-09-18 05:18:49 +00:00
Bill Currie
dd98622859
x11 vid_fullscreen improvements from james (thanks)
2001-09-18 04:53:01 +00:00
Bill Currie
b559b3a796
fix a key mapping issue reported by MasterLich
2001-09-18 04:38:18 +00:00
Ragnvald Maartmann-Moe IV
d3e8e4ed11
Sparks and a little smoke from TE_LIGHTNINGBLOOD.
...
And kill R_RunGunshotEffect.
2001-09-17 01:48:52 +00:00
Ragnvald Maartmann-Moe IV
a7d8e2c0ea
TE_EXPLOSION2 now does colored lighting. And spark showers brightened up a bit. Sparks all yellow now, none of the weird dingy grey ones. ;)
2001-09-16 20:07:28 +00:00
Ragnvald Maartmann-Moe IV
431ac4eedb
Convert particles to use byte colors instead of float. Roughly breaks even on Mesa on my machine. Should be a speedup under other drivers.
2001-09-14 12:11:54 +00:00
Bill Currie
8c026417d8
Wait for X to complete the previous operation before proceding to the next.
...
This causes the mouse to warp properly, but doesn't fix my disappearing window :(
(possibly a wm bug)
2001-09-10 21:55:34 +00:00
Bill Currie
95515e28d7
use XMapRaised instead of XMapWindow + XRaiseWindow
2001-09-10 17:18:31 +00:00
Bill Currie
0f30506b79
d'oh, got the return values backwards
2001-09-10 17:02:35 +00:00
Bill Currie
388513e005
several fullscreen toggling improvements including window location restoration
2001-09-10 16:53:33 +00:00
Bill Currie
a17d8fe452
turns out the window location code is needed after all.
2001-09-10 15:41:47 +00:00
Bill Currie
8ca44af043
fix a bug in the handling of case m (see skybox.fig)
2001-09-10 00:57:11 +00:00
Ragnvald Maartmann-Moe IV
7af79b96ec
Lots of whitespace, header cleanups, and a few tiny optimizations.
2001-09-09 21:41:35 +00:00
Bill Currie
8a959d157b
put my sky debug code back in (enabled for now)
2001-09-09 21:27:09 +00:00
Ragnvald Maartmann-Moe IV
28fe1dc004
Tweak rocket trails. Uglier, but don't bog down rocket snipers. Also a couple tiny optimizations and cleanups.
2001-09-09 19:37:07 +00:00
Bill Currie
b788eb6dbd
remove some no-longer needed code (the window coord finder) and quientn
...
the mode setting code a little.
2001-09-08 06:25:37 +00:00
Bill Currie
b12ee9e166
unmap and re-map the window with the correct attributes for the current
...
setting of vid_fullscreen
2001-09-08 05:43:52 +00:00
Bill Currie
20188c6670
heh, and in_pre_amp
2001-09-08 03:34:28 +00:00
Bill Currie
cd0d260549
fix an exponential growth of in_mouse_amp when in_amp is > 1
2001-09-08 03:33:57 +00:00
Bill Currie
05f489735e
code cleanups and possibly minor optimisations
2001-09-07 21:15:08 +00:00
Bill Currie
c762151df6
comment on the code duplication for the texture resamplers
2001-09-07 17:12:02 +00:00
Bill Currie
ffd9e727a8
roll the skin resampling loops back up
2001-09-07 17:05:56 +00:00
Ragnvald Maartmann-Moe IV
0d0e570676
Small particle trail speedup/legibility/flexibility improvement, at price of redundant code in sw/sw32. Tradeoffs. *sigh*
2001-09-07 05:37:11 +00:00
Bill Currie
d7675ada7a
move the particle count multiplication out of the renderer and into the clien
...
(for blood and gunshot, anyway).
2001-09-06 05:41:15 +00:00
Ragnvald Maartmann-Moe IV
4c7e60e73a
Rearrange "rocket" trail code. Some small optimizations, mostly a cleanup, will make tweaking individual effects separately easier.
2001-09-06 04:26:53 +00:00
Bill Currie
be7307faa9
move the dlight and lightmap code and data from r_main to r_light
2001-09-06 03:53:13 +00:00
Bill Currie
008d80df67
s/IMT_DEFAULT/IMT_0/g for the constant and move the name-enum entry for
...
IMT_DEFAULT to the bottom of the list so that IMT_0 gets written as such
rather than IMT_DEFAULT.
Also, clean up nq's EF_* dlight creation a bit (haven't touched
EF_MUZZLEFLASH: undecided on what to do).
2001-09-05 21:22:55 +00:00
Ragnvald Maartmann-Moe IV
7d52c663a3
Convert a few rand to qfrandom, and a tiny optimization (more of a cleanup, really).
2001-09-05 09:06:48 +00:00
Ragnvald Maartmann-Moe IV
55f0fed0b6
Replace lhrandom with qfrandom, a different convenience macro with better random number distribution (see man 3 rand).
2001-09-05 06:20:45 +00:00
Ragnvald Maartmann-Moe IV
d2c041cae6
Remove and ifdef out currently unused code.
2001-09-05 04:25:47 +00:00
Bill Currie
4249bba636
make sure input is grabbed when going fullscreen on init
2001-09-05 03:41:29 +00:00