1 inline void Camera::setName(
const std::string& name) {
5 inline void Camera::setType(
Type type) {
9 inline void Camera::setFovY(
float fovy) {
10 LUG_ASSERT(_type == Camera::Type::Perspective,
"You need to build a persepctive camera to set the fov y");
14 inline void Camera::setAspectRatio(
float aspectRatio) {
15 LUG_ASSERT(_type == Camera::Type::Perspective,
"You need to build a persepctive camera to set the aspect ratio");
16 _aspectRatio = aspectRatio;
19 inline void Camera::setXMag(
float xmag) {
20 LUG_ASSERT(_type == Camera::Type::Orthographic,
"You need to build a orthographic camera to set the x magnification");
24 inline void Camera::setYMag(
float ymag) {
25 LUG_ASSERT(_type == Camera::Type::Orthographic,
"You need to build a orthographic camera to set the y magnification");
29 inline void Camera::setZNear(
float znear) {
33 inline void Camera::setZFar(
float zfar) {
#define LUG_ASSERT(assertion, message)