- backend sync with Raze

Nothing really useful here…
This commit is contained in:
Christoph Oelckers 2022-04-11 00:26:50 +02:00
parent 45e7badb71
commit a97a2ec133
3 changed files with 19 additions and 1 deletions

View File

@ -44,7 +44,6 @@
#include "intrect.h"
#include "hw_shadowmap.h"
#include "buffers.h"
#include "g_levellocals.h"
struct FPortalSceneState;

View File

@ -708,6 +708,13 @@ struct AFuncDesc
extern FieldDesc const *const VMGlobal_##name##_HookPtr; \
MSVC_FSEG FieldDesc const *const VMGlobal_##name##_HookPtr GCC_FSEG = &VMGlobal_##name;
#define DEFINE_GLOBAL_UNSIZED(name) \
static const FieldDesc VMGlobal_##name = { "", #name, (size_t)&name, ~0u, 0 }; \
extern FieldDesc const *const VMGlobal_##name##_HookPtr; \
MSVC_FSEG FieldDesc const *const VMGlobal_##name##_HookPtr GCC_FSEG = &VMGlobal_##name;
class AActor;

View File

@ -54,6 +54,16 @@ extern FFastTrig fasttrig;
#define RAD2BAM(f) ((unsigned)xs_CRoundToInt((f) * (0x80000000/3.14159265358979323846)))
inline double fastcosbam(double v)
{
return fasttrig.cos(v);
}
inline double fastsinbam(double v)
{
return fasttrig.sin(v);
}
inline double fastcosdeg(double v)
{
return fasttrig.cos(DEG2BAM(v));
@ -129,6 +139,8 @@ inline double cosdeg(double v)
#else
#define g_sindeg fastsindeg
#define g_cosdeg fastcosdeg
#define g_sinbam fastsinbam
#define g_cosbam fastcosbam
#define g_sin fastsin
#define g_cos fastcos
#endif