Commit Graph

124 Commits

Author SHA1 Message Date
Kevin Shanahan
d269f32cc6 progs: merge progdefs.h header and move to include directory
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-12 09:13:27 +10:30
Kevin Shanahan
726e4365c1 fix strict aliasing issue with mathlib.h IS_NAN() macro
I assume the memcpy will be nicely optimised away, but not really critical
anyway.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-02 18:40:42 +10:30
Kevin Shanahan
6cb119d17d model: roll maliasgroupframedesc_t into maliasgroup_t
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 17:22:26 +10:30
Kevin Shanahan
dbb0437a14 model: remove never referenced bbox data from aliasgroup frames
No need to keep a copy of the bbox info for every aliasgroup frame as it
is never referenced by the engine.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 16:52:38 +10:30
Kevin Shanahan
e88216be62 model: remove unused structures from gl_model.h
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 16:41:56 +10:30
Kevin Shanahan
d5d9c82ced model: make intervals part of daliasgroup_t struct
The frame intervals always follow the daliasgroup_t structure on disk, so
attach them to the structure as a variable sized array. Pass the correct
types in to Mod_LoadAliasGroup and avoid passing around (void *) pointers.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 13:37:03 +10:30
Kevin Shanahan
f1ac2404a2 model: constify Mod_LoadAliasFrame input argument
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 11:10:21 +10:30
Kevin Shanahan
7169309cc2 model: make verticies part of daliasframe_t struct
Verticies always follow the daliasframe_t structure on disk, so attach
them to the structure as a variable sized array. Pass the correct types in
to Mod_LoadAliasFrame and avoid passing around (void *) pointers.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 11:05:32 +10:30
Kevin Shanahan
ff39b5fe78 trivial: modelgen.h whitespace cleanup
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 10:13:41 +10:30
Kevin Shanahan
3c3bada1c3 trivial: re-order defintions in model.h to match gl_model.h
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 10:13:05 +10:30
Kevin Shanahan
079b86b228 model: use zero sized arrays for variable sized structs
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-29 08:01:49 +10:30
Kevin Shanahan
6fab3eb423 model: merge modelgen.h files and fix #include fallout
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 16:47:27 +10:30
Kevin Shanahan
30711a9657 model: use floats to store node/leaf bounding boxes
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 14:09:19 +10:30
Kevin Shanahan
7adfaad559 model: remove unused mspriteframe_t member pcachespot
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 14:07:41 +10:30
Kevin Shanahan
83ea48f941 model: re-order sw msurface_t members more like gl
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 14:05:56 +10:30
Kevin Shanahan
d8885d88ba model: pass poseverts down to GL_MakeAliasModelDisplayLists
Make globals "poseverts" and "posenum" local to gl_model.c

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 12:44:47 +10:30
Kevin Shanahan
2abce220c1 model: pass tris and verts down to GL_MakeAliasModelDisplayLists
Make globals "triangles" and "stverts" local to gl_model.c

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 12:32:18 +10:30
Kevin Shanahan
77f2154ece gl: expose gl_subdivide_size in glquake.h
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 12:05:10 +10:30
Kevin Shanahan
41b71e27a5 model: pass loadmodel down into GL_SubdivideSurface
Last external user of loadmodel, so can mark it static

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 11:59:02 +10:30
Kevin Shanahan
845f993b2b sys: remove now unused Sys_File* functions
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-28 07:34:14 +10:30
Kevin Shanahan
9ac39cae20 build: make use of xf86dga optional for x11
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-24 20:53:56 +10:30
Kevin Shanahan
23331b9456 console: Add argument completion support for cvars
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-24 18:50:38 +10:30
Kevin Shanahan
d2c2c6059c Implement a type-checking clamp macro
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-23 14:27:57 +10:30
Kevin Shanahan
a3892ec40d render: Remove global currententity
Finally we can see that currententity is only ever written and not
read so it is safe to remove.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 13:40:58 +10:30
Kevin Shanahan
ca73186348 render: pass currententity down to R_DrawSprite
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 12:24:43 +10:30
Kevin Shanahan
c7c7061c26 render: pass currententity down to R_RenderBrushPoly
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 12:00:57 +10:30
Kevin Shanahan
a3417f1295 render: pass currententity down to R_DrawSubmodelPolygons
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 11:47:24 +10:30
Kevin Shanahan
e828ea33e1 render: pass currententity down to R_DrawSolidClippedSubmodelPolygons
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 11:44:21 +10:30
Kevin Shanahan
103c394fb6 render: pass currententity down to R_RotateBmodel
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 11:36:29 +10:30
Kevin Shanahan
dd796af5e4 render: pass currententity down to R_ZDrawSubmodelPolys
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 11:31:58 +10:30
Kevin Shanahan
ac32c7c3f2 render: pass currententity down to R_RenderPoly
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 11:25:43 +10:30
Kevin Shanahan
ab23ab9ad8 render: pass currententity down to R_RenderBmodelFace
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 11:18:47 +10:30
Kevin Shanahan
4fe87926ef render: pass currententity down to R_RenderFace
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 11:14:17 +10:30
Kevin Shanahan
3f159b8285 render: pass currententity down to D_CacheSurface
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 10:57:06 +10:30
Kevin Shanahan
f22338ea60 render: pass currententity down to R_AliasDrawModel
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 10:33:22 +10:30
Kevin Shanahan
bda5e3718e render: pass currententity down to R_AliasCheckBBox
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-22 10:06:50 +10:30
Kevin Shanahan
045e234d72 surf: Pass currententity down into R_TextureAnimation
Remove dependence on global "currententity"

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-21 20:19:16 +10:30
Kevin Shanahan
23d81d22d7 Move r_shared.h to common include dir
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-20 17:20:56 +10:30
Kevin Shanahan
e3a0d0cac9 vid: Bump MAXWIDTH and MAXHEIGHT
Actually, MAXWIDTH is never used at all...

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-20 17:05:29 +10:30
Kevin Shanahan
fdd7c65242 trivial: whitespace
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-20 10:12:03 +10:30
Kevin Shanahan
b758409f2e video: Add experimental SDL renderer for Win32
This is a rather large patch which adds an experimental SDL rendering
target for Win32 (software renderer only). Changes to support SDL input
spilled over into a number of other areas - most notably the big churn in
keys.h to match the key symbols to those of SDL.

Credit to the Quakeforge project, whose sources were very helpful for me
in working out how this all fits together.

Compile with USE_SDL=Y to select the experimental target (tyr-quake.exe
and tyr-qwcl.exe only). Expect that not everything works - e.g. A single
800x600 video mode is hard coded right now.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-07 17:39:29 +10:30
Kevin Shanahan
158129ae37 vid: Make modestate static in the windows vid drivers
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-04-28 22:03:47 +09:30
Kevin Shanahan
6995a945d8 vid: Remove empty function VID_HandlePause
Removes a couple of #ifdef WIN32 instances. Was supposed to be to release
the mouse pointer, but hasn't been doing that for a while now.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-04-28 17:25:09 +09:30
Kevin Shanahan
913cefac02 Move extern declaration from sv_ccmds.c to cmd.h
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-04-21 16:44:38 +09:30
Tyrann
a2c3dbc47d trivial: remove unused variable 2011-12-30 10:20:16 +10:00
Tyrann
5b84b0a343 Move render.h to the common include directory 2011-12-30 09:44:42 +10:00
Tyrann
1bb07a24a0 Remove unneeded alpha parameter to GL_Upload8_EXT 2011-12-28 10:48:15 +10:00
Tyrann
a342b0708d [PATCH] Remove old (and broken) support for stereoscopic shutter glasses 2009-09-13 13:37:16 +09:30
Tyrann
264484c6ef [PATCH] Extra mouse button support under linux
As requested by Jonas Nicolaisen <J.Nicolaisen@gmx.net>. Actually, I can't
really verify that this works, since I don't have that many buttons myself.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-12-30 22:43:02 +10:30
Tyrann
157543cc1b [PATCH] Cleanup winquake.h unneeded includes and defines
Move commctrl.h include to gl_vidnt.c, as that seems to be the only file that
needs it. Also remove a bunch of declarations for non-existent variables.

Signed-off-by: Tyrann <tyrann@disenchant.net>
2007-12-30 22:43:01 +10:30