Commit graph

37 commits

Author SHA1 Message Date
Bill Currie
858a0e5db2 Warp the cursor out of the way for 3dfx users. Hopefully this does the job. 2000-07-27 04:39:01 +00:00
Bill Currie
4f0e4c858a Move the mouse cursor hiding code from in_x11 to vid_{x11,glx} so it is
guaranteed to be done /before/ the glx context is created. Hopefully this
fixes knghtbrd's ugly cursor problem.
2000-07-27 03:37:41 +00:00
Dabb
b183d0dcaf VID_SetCaption (title) stubs - code added later. 2000-07-14 16:09:35 +00:00
Jeff Teunissen
ba47dca3aa SDL support in configure.in... it isn't turned into a target yet, but it
will be soon.
2000-07-11 05:05:27 +00:00
Brian Koropoff
01148e4ce9 This fixes a bug with nvidia cards that can cause other GL programs to run very slowly. Thanks to rpete for pointing out the problem. 2000-07-09 05:49:26 +00:00
Bill Currie
b25d03c602 source/vid_glx.c:
#if 0 the signal code. wouldn't compile otherwise, but not game to
	nuke it just yet
include/win32/version.h:
	buggered if I know. fscking configure/cvs :)
include/glquake.h:
	remove size declarations from bubble_sintable and bubble_costable
source/gl_part.c source/gl_rlight.c:
	32 segments in a circle now instead of 16 and change the pointer
	math to cope
source/gl_warp.c:
	nothing much. just almost double my fps. (hint: the above tables)
2000-06-29 09:21:23 +00:00
Zephaniah E. Hull
8e64d0d3cc Fixed the signal handling for x11 targets, specificly -x11..
(Yes, this required a change in the glx target, don't ask)
2000-06-26 17:20:38 +00:00
Bill Currie
d75f6944c1 make XRaiseWindow happen unconditionally. Should help with qf not always
getting focus on v3.
2000-06-26 10:38:41 +00:00
Joseph Carter
32b13fb303 gl_finish - it's done
gl_ztrick - here's the hat, but no rabbit

considering that a buggy driver can make gl_ztrick into a sort of cheat if
you can stand the flicker, it's gone.  gl_finish was already a zombie Cvar
so I just removed its definition.
2000-06-17 13:30:39 +00:00
Joseph Carter
3287c0e38b ARB multitexture for glx, wgl, and 3dfx targets 2000-06-09 21:34:21 +00:00
Joseph Carter
c1f7cef497 GLX now supports EXT_multitexture if you've got it, one more step
toward real ARB_multitexture.
2000-06-05 12:22:22 +00:00
Joseph Carter
9a348350df Multitexture for GLX, sortof. It's useless to you unless you've got
SGIS_multitexture (I assure you, unless you're on IRIX, you don't have
it!)  Added a Sbar_Changed () to fix the sbar overbright for a few people
and the very beginnings of ARB_multitexture are now in glquake.h
2000-06-04 13:53:29 +00:00
Joseph Carter
19afb34084 This adds multitexture for win32 back into the game. 2000-06-03 22:32:53 +00:00
Joseph Carter
8d08bc4d86 This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to
make work properly:

Win32 thing..  If you don't free textures explicitly, you can cause a
problem with nVidia drivers.

Colored lighting is now RGB instead of RGBA.  The alpha is kinda pointless
on a lightmap and the effect's not all that great.  Plus people stuck with
16 bit OpenGL (any other 3dfx people out there?) will be quite pleased
with the improvement in image quality.  This does include LordHavoc's
dynamic light optimization code which takes most of the pain out of having
gl_flashblend off.

All glColor*'s are now half of what they used to be, except where they
aren't.  If that doesn't make sense, don't worry.  If you see one that's
only half what you'd expect, don't worry---it probably is meant to be like
that..  (More below)

glDisable (GL_BLEND) is now a thing of the GL_PAST.  As is GL_REPLACE.
Instead, we _always_ use GL_MODULATE and leave GL_BLEND turned on.  This
seems at first like it might be a performance hit, but I swear it's much
more expensive to change blending modes and texture functions 20-30 times
every screen frame!

Win32 issue..  Even though we check for multitexture, we currently don't
use it.  Reason is that I am planning to replace SGIS_multitexture with
the preferred ARB_multitexture extension which is supported in most GL 1.1
implementations and is a requirement for GL 1.2 anyway.  I also wanted to
get rid of some duplicated code.  Since Linux doesn't support multitexture
yet, I just commented out the code keeping me from compiling to get it to
work.  Win32 should work without it until it's fixed, which shouldn't be
long since the differences between SGIS and ARB multitextures as far as
Quake is concerned is minimal AT BEST.

LordHavoc and I have been working tirelessly (well not quite, we both did
manage to sleep sometime during this ordeal) to fix the lighting in the GL
renderers!  It looks DAMNED CLOSE to software's lighting now, including
the ability to overbright a color.  You've gotta see this to know what I'm
talking about.  That's why the glColor*'s are halved in most places.  The
gamma table code and the general way it works is LordHavoc's design, but
over the course of re-implementing it in QF we did come up with a few more
small optimizations.


A lot of people have noticed that QF's fps count has gone to shit lately.
No promises that this undid whatever the problem was.  That means there
could be a huge optimization lurking somewhere in the shadows, waiting for
us to fix it for a massive FPS boost.  Even if there's not, the code in
this commit DOUBLED MY FPS COUNT.  Granted I was getting pathetic FPS as
it was (around 30, which is pathetic even for a Voodoo3 in Linux) but
still---60 is a big improvement over 30!

Please be sure to "test" this code thuroughly.
2000-06-03 19:56:09 +00:00
Joseph Carter
0f9bcaf22f -gamma for Linux! No you can't control it from the menu, it has to be
done on the cmdline at the moment.  Menu support later if possible.
2000-05-31 17:46:59 +00:00
Joseph Carter
ef1c6be3df New Cvar function: Cvar_SetFlags. Yes, it's there for completeness.
Some minor changes to DGA code I couldn't be bothered to back out before
I committed.  They don't hurt anything, but they don't really improve
matters much either.  The mouse cursor still doesn't get warped off the
screen, but it's no longer bright blue - now it's black and white like
normal.  I'm rewriting the damned DGA code from scratch to Get It Right
this time.
2000-05-27 16:40:36 +00:00
Jeff Teunissen
7bbb9963cc s/HAS_/HAVE_/g 2000-05-23 16:57:12 +00:00
Bill Currie
290c2f9c0f +set_vidfullscreen is 95% working for -x11 and -glx. only remaining known problem is mouse grabbing. 2000-05-23 07:33:03 +00:00
Bill Currie
3951d1fe4c bring across the VID and IN modules for svga, x11 and glx from OT. 2000-05-23 06:36:33 +00:00
Joseph Carter
3d59dfed98 Before I can fix the (MANY!) problems with newtree, I have to fix the
little problem of mixed QFile and FILE.  Since we're not using ZLib in
this tree, QFile makes no real sense.  That didn't fix the real problem
I am having though.
2000-05-22 21:16:22 +00:00
Bill Currie
ea1386f190 fixes for __attribute__((format)) (I'll commit that /after/ release) and freelook 2000-05-22 05:47:14 +00:00
Anton E. Gavrilov
a955b34f46 freelook cvar support 2000-05-22 03:15:30 +00:00
Bill Currie
af032b8d55 port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet)
split up the headerfiles and such. common.[ch] and qwsvdef.h no longer exist. More work still needs to be done (esp for windows) but this should be a major improvement.
2000-05-21 08:24:45 +00:00
Jeff Teunissen
7647fdd484 Configure.in: minor changes.
include/* -- #defines so that you can #include them more than once.
2000-05-17 18:28:13 +00:00
Bill Currie
832af13c12 all files now include config.h 2000-05-17 10:03:19 +00:00
Brian Koropoff
e30c17729c Various things from theoddone. For some reason he can't commit... 2000-05-17 01:52:15 +00:00
Bill Currie
f8a6f9cb0b no more CVAR_FIXME in here :) 2000-05-16 07:48:14 +00:00
Bill Currie
cab6a46c03 no longer segs, but mouse doesn't work!!! 2000-05-16 07:43:31 +00:00
Bill Currie
88b110dd62 glx now gets to where I can type "quit" without segging 2000-05-16 07:31:03 +00:00
Bill Currie
285f02e006 getting closer to working glx client 2000-05-16 07:21:28 +00:00
Dan Olson
1d26c02826 Cvar merge... segfault problems... also unknown problems in vid_svga.c 2000-05-16 04:47:41 +00:00
Yan Sweitzer
1efb92f899 sprintf -> snprintf
vsprintf -> vsnprintf
2000-05-15 08:59:12 +00:00
Marcus Sundberg
71f7f1836e Imported nullcursor code from vid_x11.c
Changed dpy -> x_disp and win -> x_win like vid_x11.c calls them.
2000-05-14 19:27:44 +00:00
Marcus Sundberg
37f9a98d7d Removed silly Linux-specific includes. 2000-05-14 18:06:53 +00:00
Bill Currie
bb3c299bf5 Hopefully, this will work for both 3dfx and non-3dfx 2000-05-14 08:25:10 +00:00
Thad Ward
9d6aba3598 moved sound initializatio out of vid_* to cl_host, where it belongs
(it seems i missed a file or two)
2000-05-14 03:34:24 +00:00
Bill Currie
6e74823980 take care of a fscked gl_model.c and some other bits (not sure what happened) I probably killed theoddone33's seg fixes :(
rename gl_vidlinuxglx.c to vid_glx.c
2000-05-14 02:32:27 +00:00
Renamed from source/gl_vidlinuxglx.c (Browse further)