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
Adam Olsen
9ab9764b7a
- Change QA_alloc to use variable-arguments, allowing for a much more
...
extensible interface.
2001-09-05 18:23:38 +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
Adam Olsen
f54ef94fd0
remove the failure check from SND_CallbackLoad
2001-08-31 04:02:00 +00:00
Adam Olsen
6cab8cf4e0
- change Cache_Get calls to Cache_TryGet (which I just added), so they
...
can tollerate failure.
- minor error message tweak (an emptry string is not NULL!)
2001-08-31 03:48:26 +00:00
Bill Currie
2c51098ac9
the plugin structs /definitly/ have to be static and remove some debug from
...
alsa_0_9
2001-08-31 03:42:54 +00:00
Bill Currie
bcc768295f
missed some vars that should be static
2001-08-31 00:16:31 +00:00
Bill Currie
e469b934ea
get alsa0_9 working with latest cvs, we need to dlopen the plugin with
...
RTDL_GLOBAL. To use RTDL_GLOBAL, we need to make as much static as possible
and PluginInfo needs a unique name (%s_%s_PluginInfo, type, name).
2001-08-31 00:05:58 +00:00
Bill Currie
2b18896bbb
oh, the joys of asm in shared libs
2001-08-30 22:32:11 +00:00
Bill Currie
a625f178af
better sound_started checking
2001-08-30 22:11: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
Adam Olsen
e149094bd2
- rename Qalloc and friends to QA_alloc
...
- add a QA_strdup
- add Cache_{Add,Remove,Get,Release}, for the locking version of the
cache
- Convert libs/audio/* over to locking cache functions
2001-08-30 11:37:50 +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
Adam Olsen
5aceb0435e
- add a cache_print command
...
- rename flush to cache_flush
- split off freeing of cache into a seperate function, as well as
making it aware of read locks.
2001-08-29 15:29:17 +00:00
Adam Olsen
4deed9245a
- Add CACHE_WRITE_{,UN}LOCK macros, and calls to them in Cache_*. No
...
effect until other things are done.
- Make Qalloc treat no callback as a failed callback
- Add a Qstrdup
- Fix a memory leak in cl_slists.c
2001-08-29 09:14:18 +00:00
Bill Currie
a68542f0e8
remove some #if 1 bits (the #if, not the code:)
2001-08-29 04:53:59 +00:00
Adam Olsen
f423b8a8e0
Preliminary Qalloc implimentation. Not yet used.
2001-08-29 04:52:03 +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
aa3442f8b0
rearange the % calc to avoid float (and an ICE in gcc 3)
2001-08-29 01:20:30 +00:00
Ragnvald Maartmann-Moe IV
dbae10f979
whitespace. grr.
2001-08-28 23:58:22 +00:00
Adam Olsen
ff0cffde48
- my proof-of-concept mmapped cache code, currently disabled via ifdef
...
- also added a cache_profile command, which sorts allocations into
power-of-2 sizes, then prints out how many are of that size, the
average amount they use, and the percent of total memory is used.
Also prints out totally allocated size, number of allocations, and
average per allocation.
2001-08-28 23:26:58 +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
ff2b08b2fd
make the Z_Malloc zone checking depend on developer
2001-08-28 06:15:58 +00:00
Bill Currie
13ecebd6a0
make Z_Malloc and friends more useful by allowing multiple zones
2001-08-28 05:21:30 +00:00
Bill Currie
2f9fd74a31
zone.c gets its name back
2001-08-28 04:24:40 +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
Bill Currie
abb1469364
fix a minor but important thinko that caused a nasty seg
2001-08-27 05:15:39 +00:00
Adam Olsen
5e4d7e4376
Add a sprintf builtin
2001-08-27 03:17:59 +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
707c4aa44b
I like it better when quakeforge compiles.
...
-Werror feels otherwise.
*grmbl*
2001-08-26 13:24:38 +00:00
Adam Olsen
74e9786cd1
Extend PF_Find to support searching for different field types
2001-08-26 06:35:03 +00:00
Ragnvald Maartmann-Moe IV
6e73ba0e7a
Whitespace, plus comment out unused code.
2001-08-26 01:08:09 +00:00
Adam Olsen
72f91dc9bc
comment cleanups, and a little harmless (?) bugglet fix in the
...
charcount builtin's error handling code.
2001-08-26 00:05:31 +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
9c9756c19a
Start of non-mmaped OSS sound support. it uses a cvar, so it's not
...
active yet.
2001-08-24 02:38:28 +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
Adam Olsen
90849100fe
Build fixes, notably for snd_sdl.c. It segfaults on shutdown though
...
:/
2001-08-23 11:40:53 +00:00
Adam Olsen
50e545292a
remove extra calls to SNDDMA_Init_Cvars
2001-08-23 04:52:54 +00:00
Adam Olsen
62e1819ec5
build fixes
2001-08-23 04:18:55 +00:00
Adam Olsen
cad42cbc78
Put the sound renderer in it's proper place: as a full-fledged plugin.
...
Bugs expected. Please report them :)
2001-08-23 04:01:46 +00:00
Ragnvald Maartmann-Moe IV
6797f556cf
diff-- for sw32.
2001-08-23 00:39:22 +00:00
Ragnvald Maartmann-Moe IV
edcf092b05
Whitespace, dammit. Oh, and removal of several orphaned comments. Comments in front of functions suck.
2001-08-22 22:03:16 +00:00
Adam Olsen
2bf0fa910f
Rework ED_Print to be type-aware, instead of blindly assuming
...
everything is an integer.
2001-08-22 21:07:06 +00:00
Ragnvald Maartmann-Moe IV
7a09f37e0b
Lots of whitespace.
2001-08-22 20:26:25 +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
Adam Olsen
e9ec5f867f
A few tweaks and cleanups
2001-08-22 05:37:50 +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
8f269ee821
fix "cannot find -lQFsoundrenderer" on some systems
2001-08-22 03:54:26 +00:00
Adam Olsen
17ba7ef92f
- move alot of the builtins to libQFgamecode_builtins
...
- move the init into qw and nq
2001-08-22 03:24:25 +00:00
Adam Olsen
1314c89b6c
- add libs/gamecode/builtins subdir, with libQFgamecode_builtins.la
...
- add .gitignore files
- fix building :)
2001-08-21 22:34:20 +00:00
Adam Olsen
9ea52e8239
Move the gamecode engine into a subdir.
2001-08-21 21:05:26 +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
9c43a43bb3
must make sure *gzfile gets nulled on error
2001-08-21 02:44:45 +00:00
Adam Olsen
d430cdcbff
My updir patch from long ago. Prevents opening any files with an
...
updir in their filename.
2001-08-21 00:06:22 +00:00
Bill Currie
e61c56af94
hopefully make sound plugin linking work better
2001-08-20 02:32:33 +00:00