mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
b9cd6ec91b
_pext_vrinputs: added cvar to enable vr inputs protocol extension allowing vr inputs to be networked to ssqc too. defaults to 0 for now, will be renamed when deemed final. updates menu: the prompt to enable sources is now more explicit instead of expecting the user to have a clue. updates menu: added a v3 sources format, which should be more maintainable. not final. updates menu: try to give reasons why sources might be failing (to help blame ISPs if they try fucking over TTH dns again). presets menu: no longer closes the instant a preset is chosen. some presets have a couple of modifiers listed. force the demo loop in the background to serve as a preview. prompts menus: now does word wrapping. ftemaster: support importing server lists from other master servers (requested by Eukara). server: try to detect when non-reply inbound packets are blocked by firewalls/nats/etc (using ftemaster to do so). qcvm: added pointcontentsmask builtin, allowing it to probe more than just world, with fte's full contentbit range instead of just q1 legacy. qcvm: memfill8 builtin now works on createbuffer() pointers. qcvm: add missing unsigned ops. Fixed double comparison ops. fixed bug with op_store_i64. added missing OP_LOADP_I64 qcc: added '#pragma framerate RATE' for overriding implicit nextthink durations. qcc: fixed '#pragma DONT_COMPILE_THIS_FILE' to not screw up comments. qcc: added __GITURL__ __GITHASH__ __GITDATE__ __GITDATETIME__ __GITDESC__ for any mods that might want to make use of that. qcc: fix up -Fhashonly a little setrenderer: support for vulkan gpu enumeration. rulesets: reworked to support custom rulesets (using hashes to catch haxxors, though still nothing prevents just changing the client to ignore rulesets) bspx: use our BIH code for the bspx BRUSHLIST lump instead of the older less efficient code. (static)iqm+obj: these model formats can now be used for the worldmodel (with a suitable .ent file). Also using BIH for much better collision performance. pmove: tried to optimise PM_NudgePosition, should boost fps in stress tests. wayland: fix a crash on startup. mousegrabs now works better. imagetool: uses sdl for previews. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5813 fc73d0e0-1445-4013-8a0c-d673dee63da5
71 lines
1.9 KiB
C
71 lines
1.9 KiB
C
#ifndef QCLIB_PROGTYPE_H
|
|
#define QCLIB_PROGTYPE_H
|
|
|
|
#if _MSC_VER >= 1300
|
|
#define QC_ALIGN(a) __declspec(align(a))
|
|
#elif (__GNUC__ >= 3) || defined(__clang__)
|
|
#define QC_ALIGN(a) __attribute__((aligned(a)))
|
|
#else
|
|
#define QC_ALIGN(a) //I hope misaligned accesses are okay...
|
|
#endif
|
|
|
|
#if 0
|
|
//64bit primitives allows for:
|
|
// greater precision timers (so maps can last longer without getting restarted)
|
|
// planet-sized maps (with the engine's vec_t types changed too, and with some sort of magic for the gpu's precision).
|
|
//TODO: for this to work, someone'll have to go through the code to somehow deal with the vec_t/pvec_t/float differences.
|
|
#warning FTE isnt ready for this.
|
|
#include <stdint.h>
|
|
typedef double pvec_t;
|
|
typedef int64_t pint_t;
|
|
typedef uint64_t puint_t;
|
|
|
|
#include <inttypes.h>
|
|
#define pPRId PRId64
|
|
#define pPRIi PRIi64
|
|
#define pPRIu PRIu64
|
|
#define pPRIx PRIx64
|
|
#define QCVM_64
|
|
#else
|
|
//use 32bit types, for sanity.
|
|
typedef float pvec_t;
|
|
typedef int pint_t;
|
|
typedef unsigned int puint_t;
|
|
#ifdef _MSC_VER
|
|
typedef __int64 pint64_t QC_ALIGN(4);
|
|
typedef unsigned __int64 puint64_t QC_ALIGN(4);
|
|
|
|
#define pPRId "d"
|
|
#define pPRIi "i"
|
|
#define pPRIu "u"
|
|
#define pPRIx "x"
|
|
#define pPRIi64 "I64i"
|
|
#define pPRIu64 "I64u"
|
|
#define pPRIx64 "I64x"
|
|
#else
|
|
#include <inttypes.h>
|
|
typedef int64_t pint64_t QC_ALIGN(4);
|
|
typedef uint64_t puint64_t QC_ALIGN(4);
|
|
|
|
#define pPRId PRId32
|
|
#define pPRIi PRIi32
|
|
#define pPRIu PRIu32
|
|
#define pPRIx PRIx32
|
|
#define pPRIi64 PRIi64
|
|
#define pPRIu64 PRIu64
|
|
#define pPRIx64 PRIx64
|
|
#endif
|
|
#define QCVM_32
|
|
#endif
|
|
|
|
typedef double pdouble_t QC_ALIGN(4); //the qcvm uses vectors and stuff, so any 64bit types are only 4-byte aligned. we don't do atomics so this is fine so long as the compiler handles it for us.
|
|
typedef unsigned int pbool;
|
|
typedef pvec_t pvec3_t[3];
|
|
typedef pint_t progsnum_t;
|
|
typedef puint_t func_t;
|
|
typedef puint_t string_t;
|
|
|
|
extern pvec3_t pvec3_origin;
|
|
|
|
#endif /* QCLIB_PROGTYPE_H */
|
|
|