mirror of https://github.com/AxioDL/zeus.git
Removed exceptions
This commit is contained in:
parent
9d657895cb
commit
2e3512b800
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
#include "Global.hpp"
|
#include "Global.hpp"
|
||||||
#include "CMatrix4f.hpp"
|
#include "CMatrix4f.hpp"
|
||||||
#include <stdexcept>
|
#include <stdio.h>
|
||||||
|
|
||||||
#define _USE_MATH_DEFINES 1
|
#define _USE_MATH_DEFINES 1
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
@ -65,13 +65,19 @@ public:
|
||||||
inline const SProjOrtho& getOrtho() const
|
inline const SProjOrtho& getOrtho() const
|
||||||
{
|
{
|
||||||
if (m_projType != PROJ_ORTHO)
|
if (m_projType != PROJ_ORTHO)
|
||||||
throw std::runtime_error("attempted to access orthographic structure of non-ortho projection");
|
{
|
||||||
|
fprintf(stderr, "attempted to access orthographic structure of non-ortho projection");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
return m_ortho;
|
return m_ortho;
|
||||||
}
|
}
|
||||||
inline const SProjPersp& getPersp() const
|
inline const SProjPersp& getPersp() const
|
||||||
{
|
{
|
||||||
if (m_projType != PROJ_PERSP)
|
if (m_projType != PROJ_PERSP)
|
||||||
throw std::runtime_error("attempted to access perspective structure of non-persp projection");
|
{
|
||||||
|
fprintf(stderr, "attempted to access perspective structure of non-persp projection");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
return m_persp;
|
return m_persp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "CProjection.hpp"
|
#include "CProjection.hpp"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
void CProjection::_updateCachedMatrix()
|
void CProjection::_updateCachedMatrix()
|
||||||
{
|
{
|
||||||
|
@ -59,6 +60,9 @@ void CProjection::_updateCachedMatrix()
|
||||||
m_mtx.m[3][3] = 0.0f;
|
m_mtx.m[3][3] = 0.0f;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
throw std::runtime_error("attempted to cache invalid projection type");
|
{
|
||||||
|
fprintf(stderr, "attempted to cache invalid projection type");
|
||||||
|
abort();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue