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
Bill Currie
f9e610bf6b
fix a seg witn +set in_grab on the command line
2001-09-05 03:14:41 +00:00
Ragnvald Maartmann-Moe IV
75aaccf9f0
Prettier, but slower particle effects. Also skip particle physics when r_particles 0.
2001-09-05 02:04:02 +00:00
Bill Currie
2e1a5112bd
give r_particles a callback to clear all particles when set to 0 and do
...
some general cleanup to the gl particles code
2001-09-05 00:08:54 +00:00
Ragnvald Maartmann-Moe IV
65c526c057
Some minor cleanups, and lots of particle effects tweaks.
...
Less blinding rocket trails is probably the most noticable change, other than a nice speedup in nq timedemos. Little change for overkill, though. Aw...
2001-09-04 10:32:51 +00:00
Bill Currie
83e3f10520
fix a silly with joystick buttons
2001-09-04 04:28:31 +00:00
Bill Currie
dc4cd343b5
id's sky code is back (gl_sky_clip 2 when no skybox is loaded). Not as fast
...
as the black polygons (duh:) and not as nice looking as the sky dome, but also
not as slow (fps when standing in the normal coridor looking at the sky in
start: 26 for skydome, 37 for id skys, 44 for black). Good for when you want
to see sky other than black but your card can't handle the fillrate
requirements of skydome. I'll clean up the sqrt in there soonish.
2001-09-03 06:12:10 +00:00
Ragnvald Maartmann-Moe IV
ed4de07e9a
Header and variable declaration cleanups, tiny bit of whitespace.
2001-09-01 08:57:04 +00:00
Bill Currie
99a4ea2093
fix some bogosities
2001-08-31 19:13:16 +00:00
Bill Currie
ea614fc2c6
turns out the sprite models are /not/ relocatable, so back out that change
...
in favor of cleaning up the accessors
2001-08-31 17:33:25 +00:00
Adam Olsen
384dfb7b66
- partial work for putting sprites in the cache.
...
doesn't currently build.
2001-08-31 15:32:11 +00:00
Adam Olsen
f1a016c8a5
- Refine the Cache_Get callback, to use a void * instead of a char *
...
- Switch alias models over to Cache_Get/Cache_Release
2001-08-31 12:22:45 +00:00
Bill Currie
7aa5ab75de
header dep cleanup and IN_LL_Commands is /gone/
2001-08-30 20:32:27 +00:00
Bill Currie
822e637e11
s/_windowed_mouse/in_grab/ and in_grab and in_dga now use callbacks
2001-08-30 20:04:13 +00:00
Ragnvald Maartmann-Moe IV
333bd5ea17
R_EntityParticles cleanup.
2001-08-30 19:51:11 +00:00
Bill Currie
d81d7fd02c
glColor cleanup
2001-08-30 18:24:19 +00:00
Bill Currie
fa036c7c11
inline mark_surfaces
2001-08-29 20:55:14 +00:00
Bill Currie
0d55476711
make VectorSubtract and VectorCompare macros and clean up the readability
...
of R_DrawParticles
2001-08-29 20:19:54 +00:00
Bill Currie
3656d6fd59
compile fixes for win32 and take the pruning shears to *sys*.c in qw and nq
...
(they're not done yet, though)
2001-08-29 17:45:53 +00:00
Bill Currie
a68542f0e8
remove some #if 1 bits (the #if, not the code:)
2001-08-29 04:53:59 +00:00
Bill Currie
5902dcca6a
code cleanup
2001-08-29 03:27:31 +00:00
Bill Currie
663c58cd24
diff--; break;
2001-08-29 02:16:17 +00:00
Bill Currie
b0c7ac9867
while (1) diff--;
2001-08-29 01:28:03 +00:00
Bill Currie
11489550ba
gratuitous_diff--
2001-08-28 22:46:02 +00:00
Bill Currie
baaa452345
merge error fixes
2001-08-28 20:51:51 +00:00
Bill Currie
a9d6bc9a30
total nukage of #ifdef QUAKE2 (R_DarkFieldParticles is present, just unused)
2001-08-27 23:21:09 +00:00
Bill Currie
3edd4550d2
heh, nor do we need PROGHEADER_CRC
2001-08-27 21:13:00 +00:00
Ragnvald Maartmann-Moe IV
793efd6976
Whitespace.
2001-08-27 01:00:03 +00:00
Ragnvald Maartmann-Moe IV
b1666defb9
Remove unused code.
2001-08-26 19:47:35 +00:00
Ragnvald Maartmann-Moe IV
b64822e572
Why r_var.c had extern R_ForceLightUpdate I've no idea, but it doesn't anymore.
2001-08-26 17:32:30 +00:00
Ragnvald Maartmann-Moe IV
da1c680364
Whitespace.
2001-08-26 17:13:33 +00:00
Ragnvald Maartmann-Moe IV
84b2070d17
Whitespace.
2001-08-26 16:54:33 +00:00
Ragnvald Maartmann-Moe IV
06dd45bdb1
Merge common lighting code. Still some lightmap-related code in *_rsurf.c that might be mergable. This is the first step towards 3 component lighting for the sw32 renderer.
...
Note that gl_lightmap_components is now r_lightmap_components, and gl_dlight_lightmaps is now r_dlight_lightmaps.
2001-08-25 23:23:14 +00:00
Adam Olsen
c6ec43d659
some build fixes, which I'm not sure are right, and a fix for
...
fullscreen toggling.
2001-08-25 09:21:40 +00:00
Bill Currie
2a027969d5
various init order fixes and a */[] snafu sorted
...
also make translations big enough for the 32 bit colors
2001-08-25 05:54:21 +00:00
Bill Currie
2634b447b5
initialize the gamma
2001-08-25 04:53:00 +00:00
Bill Currie
a401d6f40a
enable the screen update code but things are still black (palette issues?)
2001-08-25 04:47:07 +00:00
Bill Currie
5134978100
allocate space for the color maps
2001-08-25 04:36:27 +00:00
Ragnvald Maartmann-Moe IV
f7f04aad5f
Add .gitignore. Whee.
2001-08-25 03:53:05 +00:00
Bill Currie
4ed75b014a
"Yay, it builds!"
...
"Ah, but does it work?"
2001-08-25 03:52:34 +00:00
Bill Currie
8fa46e9fc0
almost there getting the sw32 client to link
2001-08-25 03:24:44 +00:00
Ragnvald Maartmann-Moe IV
20544c6c67
Remove some obsolete comments.
2001-08-25 03:06:46 +00:00
Ragnvald Maartmann-Moe IV
c6266aba36
sw32. Flee in terror. This'll break compilation for everything until -sdl32 compiles. sw32 wont work for a while either, so don't get overly excited yet.
2001-08-25 02:47:11 +00:00
Adam Olsen
bd847e73f1
Add support for dumping backtraces.
2001-08-23 23:34:38 +00:00
Bill Currie
79be73f507
we now require sdl 1.2 for sdl support
2001-08-23 20:28:41 +00:00
Ragnvald Maartmann-Moe IV
6797f556cf
diff-- for sw32.
2001-08-23 00:39:22 +00:00
Ragnvald Maartmann-Moe IV
e7fb6a1100
Whitespace, comment cleanups, and a very tiny cleanup/micro-optimization for R_AddDynamicLights.
2001-08-22 11:00:25 +00:00
Bill Currie
4a9567cb8d
missed this one
2001-08-22 05:44:04 +00:00
Bill Currie
3fc566a7ee
nor does it seem to have gamma support
2001-08-22 04:16:10 +00:00
Bill Currie
015fe8071a
sdl 1.1.4 doesn't have SDLK_COMPOSE
2001-08-22 04:01:50 +00:00
Bill Currie
ec3eed4c7a
don't do the lerp calcs for blend == 0 or blend == 1
2001-08-21 05:46:55 +00:00
Bill Currie
0d82df96b0
ah, found the correct fix :)
2001-08-21 05:29:15 +00:00
Bill Currie
7ea46cf4ed
disable lerping of the shadedots. stops the flicker but some lighting will
...
probably be a little funny.
2001-08-21 05:16:30 +00:00
Bill Currie
9bad6b89bb
lerping works again. flames no longer flicker, but players do a /little/
2001-08-21 03:49:17 +00:00
Bill Currie
1af4fe4b79
make (in_)bind's output a little more intuitive and support num lock and
...
scroll lock in x11.
2001-08-20 02:06:55 +00:00
Bill Currie
cd338f47f2
haha, oops. got x and y translations reversed
2001-08-20 01:09:33 +00:00
Ragnvald Maartmann-Moe IV
1c9918fe48
Commit inexplicably lost lines of code. Stops certain unwanted crashes.
2001-08-17 23:20:08 +00:00
Bill Currie
b61999750b
fix shift changing the key name
2001-08-17 19:47:51 +00:00
Ragnvald Maartmann-Moe IV
5536883f71
Convert joy_sensitivity to joy_amp and joy_pre_amp, and support in_amp, in_pre_amp.
2001-08-17 08:35:26 +00:00
Ragnvald Maartmann-Moe IV
36395e1681
Minor comment updates, Imt->IMT in a few function names, and accel->amp for input amplification (once known as sensitivity).
2001-08-17 07:26:01 +00:00
Zephaniah E. Hull
80696badc7
kgt->imt, and imt now displays the current IMT.
2001-08-17 07:06:01 +00:00
Bill Currie
d96f0962ab
fix for new input crap
2001-08-17 04:58:10 +00:00
Adam Olsen
f0c200120c
yup, more
2001-08-17 03:43:28 +00:00
Ragnvald Maartmann-Moe IV
13f394b161
Damn -Werrors to hell.
2001-08-17 02:18:06 +00:00
Bill Currie
86be79d1c7
forgot to convert unbind's keyname
2001-08-17 01:55:54 +00:00
Bill Currie
bb2079a6d7
make the conversion case insensitive
2001-08-17 01:54:03 +00:00
Adam Olsen
62813111a0
yet more IE stuff
2001-08-16 23:34:49 +00:00
Bill Currie
f840a44981
gcc 3.0 related fixes
2001-08-16 23:24:39 +00:00
Ragnvald Maartmann-Moe IV
4ca1499c51
Whitespace. Don't you wish it would all just go away?
2001-08-16 23:14:46 +00:00
Bill Currie
373792ff69
`fix' for new input system
...
still broken functionally :/
2001-08-16 22:49:53 +00:00
Adam Olsen
92729ff6b2
More changes to input events
2001-08-16 22:27:22 +00:00
Adam Olsen
916b503f14
Some basic stuff for input events. Not yet used.
2001-08-16 21:08:17 +00:00
Bill Currie
1c12dd804c
ok, old configs /should/ work again, though I'm having problems with F10
...
not quitting (mind you, I'm not connected)
2001-08-16 20:42:57 +00:00
Bill Currie
b0cb351fba
bind and unbind wrappers for in_bind and in_unbind. old configs/mods are
...
still currently broken because I need to translate key names still.
2001-08-16 19:10:35 +00:00
Bill Currie
98b7a9fdd5
part way there :/ I'll leave vid_wgl and vid_mgl alone for now (probably move
...
that code to in_win.c)
2001-08-16 18:25:17 +00:00
Bill Currie
999c6a3b93
mek eet verk!
2001-08-16 17:52:35 +00:00
Bill Currie
12eff5eb65
x11 seems ok (hard to say: nothing's bound:/)
...
rename bind and unbind to in_bind and in_unbind
2001-08-16 16:41:40 +00:00
Zephaniah E. Hull
7cf0fd1b3b
Fix a few bugs.
2001-08-16 11:43:17 +00:00
Zephaniah E. Hull
20adccc9e4
A few things, first is that I removed the (rather broken) serial
...
networking support.
Second, I moves keys.c from qw and nq to libs/video/targets when I did
the next thing.
Existing user configs which do binds, sledge hammer. Sledge hammer,
existing user configs which do binds. *WHACK* *WHACK* *WHACK*
See, much nicer now.
Someone should document it, and fix all targets which don't use SDL for
input. (I honestly don't expect svgalib and the like to ever be fixed.)
2001-08-16 09:19:36 +00:00
Ragnvald Maartmann-Moe IV
0c7f011f4b
whitespace.
2001-08-16 06:58:55 +00:00
Adam Olsen
4d92467e7c
Make SDL support vid_fullscreen toggling too
2001-08-16 03:36:40 +00:00
Zephaniah E. Hull
8f7918d4ad
Fix the other keypad keys for SDL input.
...
Ditch sensitivity as a name, we now have in_mouse_accel,
in_mouse_filter, and in_mouse_pre_accel.
2001-08-15 23:04:54 +00:00
Bill Currie
a22fd5a172
sdl 1.1.5 fixes
2001-08-15 21:29:18 +00:00
Bill Currie
b33b9fc58a
remove a redundant call to JOY_Command
2001-08-14 22:10:55 +00:00
Bill Currie
dd16a1c4d5
call the IE init ans shutdown functions. still need to rework the rest of the
...
intput system to use it.
2001-08-14 00:03:03 +00:00
Ragnvald Maartmann-Moe IV
ca4d4791c9
Fix a severe braino, and get less excessively parenthetical in one spot.
2001-08-10 03:07:34 +00:00
Bill Currie
753928bd39
/me grumbles about some versions of gcc
2001-08-10 02:50:05 +00:00
Bill Currie
a2ef36e7ba
get the scaling on v_blend right for the change from 0-255 to 0-1
2001-08-10 02:42:34 +00:00
Ragnvald Maartmann-Moe IV
b868a09661
Kill off gl_view.c and sw_view.c. Renderer merge is more or less complete now. Software and gl renderers now calculate color shifts the same way, and sw looks a bit different now. Powerups don't shift enough in sw right now, IMO.
2001-08-10 00:28:57 +00:00
Bill Currie
ac9dace768
add focus loss/gain events and fix a silly bug in IE_Set_Focus
2001-08-09 23:43:13 +00:00
Bill Currie
bc34529a80
code for the input event system
2001-08-09 23:16:54 +00:00
Bill Currie
06946d6ab4
memset doesn't use bits 8+
2001-08-08 23:32:09 +00:00
Bill Currie
3047a6a4ba
this seems to fix the flickering dlights problem. surface visibility was
...
calculated too late for light marking.
2001-08-08 22:20:57 +00:00
Ragnvald Maartmann-Moe IV
a4ea8d088a
Header sort.
2001-08-07 21:35:54 +00:00
Bill Currie
0cba1b0f62
pre-calculate blended alias frame verteces and don't bother doing any
...
blended calculations for single pose frames/models
2001-08-07 21:18:49 +00:00
Bill Currie
a81828fe38
port over gl's lighting improvements. only gives ~4.6% improvement on my c600
...
but that's better than nothing. (34.41 to 36.00)
2001-08-07 17:29:21 +00:00
Bill Currie
c64c31b2e9
white space
2001-08-07 17:27:28 +00:00
Zephaniah E. Hull
6a59ac6c51
The end of in_dga_mouseaccel, the birth of in_pre_sensitivity.
...
As the ONLY ways that in_dga_mouseaccel differed from sensitivity was
that it worked before m_filter, and that it was DGA only, it had to go.
Now in_pre_sensitivity works with all targets and is applied just before
m_filter.
2001-08-06 05:01:31 +00:00
Bill Currie
9ac148dd69
freaking out by one error :/ I'm suprised previous runs worked at all, but
...
with this correction I am finally seeing the expected speed boost (12% on my
c450 using my null GL lib).
2001-08-06 04:13:41 +00:00
Zephaniah E. Hull
ebb03c1c65
Fixed the sdl and sgl targets to work a bit better.
2001-08-06 00:16:48 +00:00
Bill Currie
ece21540f7
almost working. just need to figure out why vis info isn't doing the right
...
thing (I suspect a bug in my deconpression)
2001-08-05 23:17:55 +00:00
Bill Currie
899d8385a9
fix a subtle bug with the lava hall to e3 in start
2001-08-05 06:10:27 +00:00
Bill Currie
dcc6a76313
make SURF_LIGHTBOTHSIDES work and fix a bug in Mod_PointInLeaf that was
...
preventing grenades from lighting up surfaces when using the vis lighting
2001-08-05 05:59:15 +00:00
Bill Currie
8883bbb369
some lighting fixes. not quite there yet
2001-08-05 05:07:49 +00:00
Bill Currie
647d38fa40
Make R_MarkLights use the vis info to speed things up. Oddly, even though
...
R_MarkLights is now about 3% instead of about 15%, I've lost 8 fps on my
null GL speed test. However, R_AddDynamicLights has jumped up a bit, so I'm
wording if maybe more surfaces are being lit.
2001-08-05 04:01:45 +00:00
Bill Currie
b455458629
exit cleanup. Sys_Error and Sys_Quit should be used whenever possible.
2001-08-02 17:16:12 +00:00
Ragnvald Maartmann-Moe IV
2887dd3950
Fix issue with gl_lightmap_components 4 and lightmap updates.
2001-08-02 04:12:26 +00:00
Ragnvald Maartmann-Moe IV
fd0c5aab36
Garbage comment removal.
2001-08-02 02:28:17 +00:00
Ragnvald Maartmann-Moe IV
6e9b51edfc
(Optionally) Use glTexSubImage2D for lightmap updates. Doesn't give as large a boost as I'd hoped, but will matter far more as other optimizations happen. New cvars gl_lightmap_align does nothing yet, and gl_lightmap_subimage only works in mode 0 and 1. Mode 2 (should be fastest mode on most cards) will eventully get implemented...
2001-08-02 02:18:04 +00:00
Bill Currie
56bb92a7f9
make gl_sky_clip 3 do as originally promises
2001-07-22 02:06:02 +00:00
Ragnvald Maartmann-Moe IV
54cda68878
Just a bit of whitespace and comment cleanup.
2001-07-21 23:18:59 +00:00
Ragnvald Maartmann-Moe IV
1461143371
Spiffed up scrag and hellknight missile particle trails. (Partly inspired by darkplaces, though not identical to LordHavoc's)
2001-07-21 20:32:45 +00:00
Bill Currie
22dbc62c71
damn magic numbers. sdl didn't like the key num shift either
2001-07-20 05:18:46 +00:00
Bill Currie
9f09a6aa32
assigning > 255 into an unsigned char isn't too good
2001-07-20 01:45:19 +00:00
Bill Currie
bcbd1b953a
heh. close, so close. one mised const
2001-07-19 21:51:18 +00:00
Bill Currie
46176e1094
azerty kb patch from Filip Van Raemdonck <mechanix@digibel.org>. includes some
...
misc fixes, too
2001-07-19 21:46:34 +00:00
Bill Currie
1c9e1b176f
fear the mighty const correct patch
2001-07-15 07:04:17 +00:00
Adam Olsen
ac46e5b49d
oops, sys_dump_core instead of sys_dumpcore
2001-07-15 01:45:03 +00:00
Adam Olsen
cb133ddf93
Add support for core dumping to X11 targets. set sys_dump_core to 1, and
...
ulimit -c to a sufficiently high value. (I get ~20 meg cores)
2001-07-14 03:15:14 +00:00
Bill Currie
62a4b86001
d'oh
2001-07-06 00:17:09 +00:00
Bill Currie
245d81420d
make sound blocking cvar controlled (in_snd_block, default off, archived) and
...
pause the cd as well.
2001-07-05 20:35:42 +00:00
Bill Currie
fc09d2b00f
port Bruce Momjian's patches from newtree with a less incestuous
...
implementation of his sound/focus patch. NOTE: only alsa 0.9 is tested
(Rhamph, can you test 0.5, please?) and only the alsa drivers stop the
hardware right ow.
WARNING!!! you /will/ have to re-install your plugins, or you will get
segfaults when the window gains/loses focus.
How do you tell if a window has focus on first mapping in X11?
2001-07-05 20:18:23 +00:00
Bill Currie
c38ca8e2f1
qfplist.h:
...
remove include of glob.h. not needed and causes win32 build to fail
plugin.c:
include compat.h and cast the return of GetProcAddress
gl_funcs.c:
fix parse error and type mismatch
qfgl_ext.c:
half re-write QFGL_ExtensionAddress to use QFGL_ProcAddress
vid_wgl.c:
fix for the new gl linking
2001-07-05 17:28:19 +00:00
Joseph Carter
fb8d04eca2
Fix -sgl's glFlush
2001-07-01 00:11:24 +00:00
Joseph Carter
515f449a39
Sun-specific code is dead. Sun boxes should work fine with -x11 and -glx
...
as it is. Left snd_sun, which looks useful for something.
2001-06-29 08:01:12 +00:00