Commit Graph

14 Commits

Author SHA1 Message Date
Kevin Shanahan
daafa9200b textures: check for npot extension and use if available
Created the gl_extensions.c file to pull some of the common stuff into
where appropriate.  Non-power of two textures will be allowed by default,
with the option to go back to old behaviour by setting command line option
"-nonpot" or cvar 'gl_npot 0'.  The cvar is a bit of a hack, as existing
textures won't be reloaded at this stage.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-05-05 20:12:41 +09:30
Kevin Shanahan
f1f7e9802d zone: move memory size command line checks into zone.c
Up the default memory to 128MB to suit more modern mods/maps.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-12 15:35:49 +09:30
Kevin Shanahan
d6035e8189 zone: document the hunk print|printall command
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-12 14:57:26 +09:30
Kevin Shanahan
194268c858 zone: add a zone print|printall command
Print info from the zone allocator.  Also set the size field in
mainzone, which was never used previously.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-12 14:56:31 +09:30
Kevin Shanahan
4a4ea5367c gl: make gl_zfix off by default due to visual glitches
Make cracks or ridges appear where brush models and the world should meet
flush.  Reduce the offset to and add an angle factor to reduce the
severity of visual glitches and default this setting off.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-05 17:16:06 +10:30
Kevin Shanahan
524da613ae doc: fix long line in tyrquake.6 man page
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-04 17:15:08 +10:30
svdijk
0b4b8e022f gl: implement a workaround for world/bmodel z-fighting
Use glPolygonOffset to work around z-fighting issues between brush models
and world geometry, e.g. the elevator to the quad damage secret in e1m1.
Can be enabled/disabled with the cvar gl_zfix.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-04 10:56:31 +10:30
svdijk
18f8bc7938 keys: write an unbindall before saving stored bindings
By default, write an 'unbindall' before the saved bindings in config.cfg
so that upon load, default bindings that had explicitly been unbound are
not restored.

Old behaviour can be restored by setting 'in_cfg_unbindall 0'.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-03 12:39:10 +10:30
Kevin Shanahan
7321b6c7d1 vid: hook up the new video menu to vid_x11.c
Things are pretty badly broken with respect to grabs and fullscreen
modes (especially on Gnome3, where the window manager already has the
grab), but windowed vid mode changes work. Will probably need to look
at _NET_WM_STATE_FULLSCREEN hint and some XInput2 stuff to fully get
this working...

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-02 18:08:14 +10:30
Kevin Shanahan
f68d503539 vid: hook up the new video options menu in vid_wgl.c
Removes a few obsolete command line options. Not sure if anyone uses
"-current", but I might bring that one back at some stage (consistently,
across all platforms).

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-02 12:50:53 +10:30
Kevin Shanahan
e136457688 vid: implement replacement video options menu
Replace the current video mode menu with one modelled after the FitzQuake
video options menu.  This changeset is far larger than I usually would
like, but I'll try to summarise the main points below:

* The recent hack for command line mode setting got replaced
* The video driver now dumps all modes into modelist and calls a sort
  function when completed. Modes are sorted by height, width, bpp and
  refresh rate (in that order).
* vid mode 0 is now the only windowed mode and we update the width/height
  when a different resolution is requested.
* vmode_t replaced with qvidmode_t and re-thought. Drivers can stuff a
  small amount of data, currently only used by the SDL driver to save the
  pixel format for each mode.
* Some old command line options removed: -allow360, -noforcevga,
  -noadjustaspect.

While everything currently compiles, unfortunately some features are
currently broken. Here is a bit of a TODO list:

* Mode testing is currently broken (was broken on SDL previously)
* Command line mode setting is inconsistent and somewhat broken
* Sound gets messed up on vid_win.c and vid_wgl.c. The workaround in
  vid_win.c seems effective there, but not in wgl, so it's probably not
  the right fix in the end.
* x11 drivers only have compatiblity glue around the new menus

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-04-01 14:28:58 +10:30
Kevin Shanahan
8549530e5c doc: document NQ's ip filtering and model lerping commands/cvars
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-27 21:36:53 +10:30
Kevin Shanahan
33ab1648c5 build: insert the date/version into the man pages
Not sure why the html docs don't get the version number generated.
A limiation of groff's html output processor?

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 15:30:50 +10:30
Kevin Shanahan
033c77328c doc: add (still incomplete) man page documentation
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2013-03-18 09:47:20 +10:30