Updated config and native menu implementation
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5336 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
4cabdb80c5
commit
346e366dfa
2 changed files with 22 additions and 25 deletions
|
@ -46,11 +46,11 @@ static void MN_RegisterCvar(const char *cvarname, const char *defaulttext, unsig
|
||||||
{
|
{
|
||||||
Cvar_Get2(cvarname, defaulttext, flags, description, NULL);
|
Cvar_Get2(cvarname, defaulttext, flags, description, NULL);
|
||||||
}
|
}
|
||||||
void Cmd_DeleteAlias(const char *name);
|
|
||||||
static void MN_RegisterCommand(const char *commandname, const char *description)
|
static void MN_RegisterCommand(const char *commandname, const char *description)
|
||||||
{
|
{
|
||||||
Cmd_DeleteAlias(commandname); //menuqc has no real way to register commands, so it has a nasty habit of creating loads of weird awkward aliases.
|
if (!Cmd_Exists(commandname)) {
|
||||||
Cmd_AddCommandD(commandname, NULL, description);
|
Cmd_AddCommandD(commandname, NULL, description);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
static int MN_GetServerState(void)
|
static int MN_GetServerState(void)
|
||||||
{
|
{
|
||||||
|
@ -87,7 +87,7 @@ static void MN_DrawQuad(const vec2_t position[4], const vec2_t texcoords[4], sha
|
||||||
if (!pic)
|
if (!pic)
|
||||||
pic = rgba[3]==1?shader_draw_fill:shader_draw_fill_trans;
|
pic = rgba[3]==1?shader_draw_fill:shader_draw_fill_trans;
|
||||||
R2D_ImageColours(rgba[0], rgba[1], rgba[2], rgba[3]);
|
R2D_ImageColours(rgba[0], rgba[1], rgba[2], rgba[3]);
|
||||||
R2D_Image2dQuad(position, texcoords, pic);
|
R2D_Image2dQuad(position, texcoords, NULL, pic);
|
||||||
r2d_be_flags = 0;
|
r2d_be_flags = 0;
|
||||||
}
|
}
|
||||||
static float MN_DrawString(const vec2_t position, const char *text, struct font_s *font, float height, const vec4_t rgba, unsigned int be_flags)
|
static float MN_DrawString(const vec2_t position, const char *text, struct font_s *font, float height, const vec4_t rgba, unsigned int be_flags)
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
// The Wastes' config.h
|
// The Wastes' config.h
|
||||||
// We support both GL and D3D9. If Vulkan matures yeahsurewhynot
|
// We support both GL and Vulkan.
|
||||||
// I want to get this mostly running on all systems.
|
// I want to get this mostly running on all systems post 2000.
|
||||||
// Possibly Xbox. Yes, the original one. Sue me.
|
|
||||||
|
|
||||||
//general rebranding
|
//general rebranding
|
||||||
#define DISTRIBUTION "VTW"
|
#define DISTRIBUTION "VTW"
|
||||||
|
@ -23,7 +22,7 @@
|
||||||
// All my fault -eukara
|
// All my fault -eukara
|
||||||
#define ENGINE_ROUTING
|
#define ENGINE_ROUTING
|
||||||
#undef USE_INTERNAL_BULLET
|
#undef USE_INTERNAL_BULLET
|
||||||
#undef MENU_NATIVECODE // Will make a debut eventually, hopefully
|
#define MENU_NATIVECODE // Will make a debut eventually, hopefully
|
||||||
|
|
||||||
// What do we use
|
// What do we use
|
||||||
#ifndef GLQUAKE
|
#ifndef GLQUAKE
|
||||||
|
@ -34,9 +33,7 @@
|
||||||
#define VKQUAKE
|
#define VKQUAKE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#undef HEADLESSQUAKE
|
#define PLUGINS //support for external plugins (like huds or fancy menus or whatever)
|
||||||
#undef WAYLANDQUAKE
|
|
||||||
|
|
||||||
#define HAVE_PACKET
|
#define HAVE_PACKET
|
||||||
#define QUAKETC
|
#define QUAKETC
|
||||||
#define AVAIL_OPENAL
|
#define AVAIL_OPENAL
|
||||||
|
@ -55,28 +52,27 @@
|
||||||
#define LOADERTHREAD // worker threads for loading misc stuff. falls back on main thread if not supported.
|
#define LOADERTHREAD // worker threads for loading misc stuff. falls back on main thread if not supported.
|
||||||
#define USEAREAGRID // world collision optimisation
|
#define USEAREAGRID // world collision optimisation
|
||||||
#define USERBE
|
#define USERBE
|
||||||
#undef AVAIL_FREETYPE // for truetype font rendering
|
|
||||||
#define IMAGEFMT_DDS // .dds files embed mipmaps and texture compression. faster to load.
|
#define IMAGEFMT_DDS // .dds files embed mipmaps and texture compression. faster to load.
|
||||||
#define DECOMPRESS_ETC2
|
#define DECOMPRESS_ETC2
|
||||||
#define DECOMPRESS_RGTC
|
#define DECOMPRESS_RGTC
|
||||||
#define DECOMPRESS_S3TC
|
#define DECOMPRESS_S3TC
|
||||||
|
#define USE_VORBISFILE
|
||||||
#define NOBUILTINMENUS
|
#define NOBUILTINMENUS
|
||||||
#define NOLEGACY //just spike trying to kill off crappy crap...
|
#define NOLEGACY //just spike trying to kill off crappy crap...
|
||||||
#define AVAIL_DINPUT
|
#define AVAIL_DINPUT
|
||||||
|
|
||||||
#ifndef DEBUG
|
#ifndef DEBUG
|
||||||
#define NOQCDESCRIPTIONS 2 //if 2, disables writing fteextensions.qc completely.
|
#define NOQCDESCRIPTIONS 2 //if 2, disables writing fteextensions.qc completely.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Various package formats
|
// Various package formats
|
||||||
#define PACKAGE_PK3
|
#define PACKAGE_PK3
|
||||||
#define PACKAGE_TEXWAD // We need this for HL WAD3 support
|
#define PACKAGE_TEXWAD // HL content support, WAD3
|
||||||
#define PACKAGE_Q1PAK // HL content will benefit from this, too
|
#define PACKAGE_Q1PAK // HL content support, PAK
|
||||||
#undef PACKAGE_DOOMWAD
|
#undef PACKAGE_DOOMWAD
|
||||||
|
|
||||||
// Map formats
|
// Map formats
|
||||||
#define Q3BSPS // What we use
|
#define Q3BSPS // What we use exclusively
|
||||||
#define Q1BSPS // HL content support
|
#define Q1BSPS // HL content support
|
||||||
#undef Q2BSPS
|
#undef Q2BSPS
|
||||||
#undef RFBSPS
|
#undef RFBSPS
|
||||||
|
@ -107,6 +103,7 @@
|
||||||
#undef AVAIL_DSOUND
|
#undef AVAIL_DSOUND
|
||||||
#undef BOTLIB_STATIC //q3 botlib
|
#undef BOTLIB_STATIC //q3 botlib
|
||||||
#undef AVAIL_XZDEC //.xz decompression
|
#undef AVAIL_XZDEC //.xz decompression
|
||||||
|
#undef AVAIL_SPEEX //.xz decompression
|
||||||
#undef AVAIL_GZDEC //.gz decompression
|
#undef AVAIL_GZDEC //.gz decompression
|
||||||
#undef AVAIL_DZIP //.dzip special-case archive support
|
#undef AVAIL_DZIP //.dzip special-case archive support
|
||||||
#undef AVAIL_PNGLIB //.png image format support (read+screenshots)
|
#undef AVAIL_PNGLIB //.png image format support (read+screenshots)
|
||||||
|
@ -138,7 +135,6 @@
|
||||||
#undef TEXTEDITOR //my funky text editor! its awesome!
|
#undef TEXTEDITOR //my funky text editor! its awesome!
|
||||||
#undef TCPCONNECT //support for playing over tcp sockets, instead of just udp. compatible with qizmo.
|
#undef TCPCONNECT //support for playing over tcp sockets, instead of just udp. compatible with qizmo.
|
||||||
#undef IRCCONNECT //lame support for routing game packets via irc server. not a good idea.
|
#undef IRCCONNECT //lame support for routing game packets via irc server. not a good idea.
|
||||||
#define PLUGINS //support for external plugins (like huds or fancy menus or whatever)
|
|
||||||
#undef SUPPORT_ICE //Internet Connectivity Establishment, for use by plugins to establish voice or game connections.
|
#undef SUPPORT_ICE //Internet Connectivity Establishment, for use by plugins to establish voice or game connections.
|
||||||
#undef PSET_CLASSIC //support the 'classic' particle system, for that classic quake feel.
|
#undef PSET_CLASSIC //support the 'classic' particle system, for that classic quake feel.
|
||||||
#undef HAVE_CDPLAYER //includes cd playback. actual cds. named/numbered tracks are supported regardless (though you need to use the 'music' command to play them without this).
|
#undef HAVE_CDPLAYER //includes cd playback. actual cds. named/numbered tracks are supported regardless (though you need to use the 'music' command to play them without this).
|
||||||
|
@ -162,6 +158,9 @@
|
||||||
#undef HAVE_SPEECHTOTEXT //windows speech-to-text thing
|
#undef HAVE_SPEECHTOTEXT //windows speech-to-text thing
|
||||||
//#define SAVEDGAMES //Can save the game.
|
//#define SAVEDGAMES //Can save the game.
|
||||||
#undef PACKAGEMANAGER //Allows the user to enable/disable/download packages and plugins.
|
#undef PACKAGEMANAGER //Allows the user to enable/disable/download packages and plugins.
|
||||||
|
#undef HEADLESSQUAKE
|
||||||
|
#undef WAYLANDQUAKE
|
||||||
|
#undef AVAIL_FREETYPE // for truetype font rendering
|
||||||
|
|
||||||
#ifdef COMPILE_OPTS
|
#ifdef COMPILE_OPTS
|
||||||
//things to configure qclib, which annoyingly doesn't include this file itself
|
//things to configure qclib, which annoyingly doesn't include this file itself
|
||||||
|
@ -174,15 +173,13 @@
|
||||||
#ifdef USE_INTERNAL_BULLET //makefile will respond to this by trying to link bullet into the engine itself, instead of as a plugin.
|
#ifdef USE_INTERNAL_BULLET //makefile will respond to this by trying to link bullet into the engine itself, instead of as a plugin.
|
||||||
-DLINK_INTERNAL_BULLET
|
-DLINK_INTERNAL_BULLET
|
||||||
#endif
|
#endif
|
||||||
#if defined(FTE_TARGET_win32) || defined(FTE_TARGET_win64)
|
|
||||||
-DLINK_FREETYPE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-DNO_SPEEX //disable static speex
|
-DNO_SPEEX //disable static speex
|
||||||
#ifndef BOTLIB_STATIC
|
#ifndef BOTLIB_STATIC
|
||||||
-DNO_BOTLIB //disable static botlib
|
-DNO_BOTLIB //disable static botlib
|
||||||
#endif
|
#endif
|
||||||
-DNO_VORBISFILE //disable static vorbisfile
|
|
||||||
|
|
||||||
-Os //optimise for size instead of speed. less cpu cache needed means that its sometimes faster anyway.
|
-DLIBVORBISFILE_STATIC
|
||||||
|
|
||||||
|
//-Os //optimise for size instead of speed. less cpu cache needed means that its sometimes faster anyway.
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue