Coherence update

Audio: GetListenerDirection was using ALfloat and GetListenerRotation
not.
ByteArray: Two return *this, hazh is perturbing, is it intended ?
String: Same ?
Camera: Adds of security (don't think it's usefull)
Parser: size() = 0 -> empty()
Utility: update 13 to 14 was forgotten
VertexDeclaration: same

Former-commit-id: f6db5cd15e5a4dc5ac2af12366b18d1f6922b0e0
This commit is contained in:
Gawaboumga
2014-07-13 16:03:15 +02:00
parent 7a6195991c
commit e9554ad498
7 changed files with 32 additions and 12 deletions

View File

@@ -134,6 +134,13 @@ float NzCamera::GetZNear() const
void NzCamera::SetFOV(float fov)
{
#if NAZARA_GRAPHICS_SAFE
if (NzNumberEquals(fov, 0.f))
{
NazaraError("Fov is null.");
return;
}
#endif
m_fov = fov;
m_frustumUpdated = false;
@@ -183,6 +190,13 @@ void NzCamera::SetViewport(const NzRecti& viewport)
void NzCamera::SetZFar(float zFar)
{
#if NAZARA_GRAPHICS_SAFE
if (m_zNear > zFar)
{
NazaraError("zNear is greater than zFar.");
return;
}
#endif
m_zFar = zFar;
m_frustumUpdated = false;
@@ -191,6 +205,13 @@ void NzCamera::SetZFar(float zFar)
void NzCamera::SetZNear(float zNear)
{
#if NAZARA_GRAPHICS_SAFE
if (zNear < 0.f || NzNumberEquals(zNear, 0.f))
{
NazaraError("zNear is less than/equals 0.");
return;
}
#endif
m_zNear = zNear;
m_frustumUpdated = false;