Refactor engine to support double-precision vectors

This commit is contained in:
Wojtek Figat
2022-06-13 00:40:32 +02:00
parent f82e370392
commit a881c90b2e
744 changed files with 19062 additions and 12467 deletions

View File

@@ -12,7 +12,7 @@ AudioListener::AudioListener(const SpawnParams& params)
{
}
bool AudioListener::IntersectsItself(const Ray& ray, float& distance, Vector3& normal)
bool AudioListener::IntersectsItself(const Ray& ray, Real& distance, Vector3& normal)
{
return false;
}

View File

@@ -39,7 +39,7 @@ public:
return BoundingBox(_transform.Translation - size, _transform.Translation + size);
}
#endif
bool IntersectsItself(const Ray& ray, float& distance, Vector3& normal) override;
bool IntersectsItself(const Ray& ray, Real& distance, Vector3& normal) override;
protected:

View File

@@ -339,7 +339,7 @@ bool AudioSource::HasContentLoaded() const
return Clip == nullptr || Clip->IsLoaded();
}
bool AudioSource::IntersectsItself(const Ray& ray, float& distance, Vector3& normal)
bool AudioSource::IntersectsItself(const Ray& ray, Real& distance, Vector3& normal)
{
return false;
}

View File

@@ -287,7 +287,7 @@ public:
void Serialize(SerializeStream& stream, const void* otherObj) override;
void Deserialize(DeserializeStream& stream, ISerializeModifier* modifier) override;
bool HasContentLoaded() const override;
bool IntersectsItself(const Ray& ray, float& distance, Vector3& normal) override;
bool IntersectsItself(const Ray& ray, Real& distance, Vector3& normal) override;
protected:

View File

@@ -20,7 +20,7 @@
#define ALC_MULTIPLE_LISTENERS 0
#define FLAX_POS_TO_OAL(vec) -vec.X * 0.01f, vec.Y * 0.01f, -vec.Z * 0.01f
#define FLAX_POS_TO_OAL(vec) ((ALfloat)vec.X * -0.01f), ((ALfloat)vec.Y * 0.01f), ((ALfloat)vec.Z * -0.01f)
#if BUILD_RELEASE
#define ALC_CHECK_ERROR(method)
#else