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>
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>
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>
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>
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>
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>
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>
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>
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>