Refactor engine to support double-precision vectors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user