MobileRT
1.0
A multi platform C++ CPU progressive Ray Tracer.
|
#include <Orthographic.hpp>
Public Member Functions | |
Orthographic ()=delete | |
Orthographic (const ::glm::vec3 &position, const ::glm::vec3 &lookAt, const ::glm::vec3 &up, float sizeH, float sizeV) | |
Orthographic (const Orthographic &orthographic)=default | |
Orthographic (Orthographic &&orthographic) noexcept=delete | |
~Orthographic () final=default | |
Orthographic & | operator= (const Orthographic &orthographic)=delete |
Orthographic & | operator= (Orthographic &&orthographic) noexcept=delete |
::MobileRT::Ray | generateRay (float u, float v, float deviationU, float deviationV) const final |
::MobileRT::AABB | getAABB () const final |
float | getSizeH () const |
float | getSizeV () const |
![]() | |
Camera (const ::glm::vec3 &position, const ::glm::vec3 &lookAt, const ::glm::vec3 &up) | |
Camera (const Camera &camera) | |
Camera (Camera &&camera) noexcept=default | |
virtual | ~Camera ()=default |
Camera & | operator= (const Camera &camera)=default |
Camera & | operator= (Camera &&camera) noexcept=default |
Private Attributes | |
float | sizeH_ {} |
float | sizeV_ {} |
Additional Inherited Members | |
![]() | |
::glm::vec3 | position_ {} |
::glm::vec3 | direction_ {} |
::glm::vec3 | right_ {} |
::glm::vec3 | up_ {} |
![]() | |
static float | degToRad (float deg) |
static float | radToDeg (float rad) |
A class which represents an Orthographic camera in the scene.
This type of camera is similar to the isometric view of some games. Different from normal perspective cameras, an object's apparent scale isn't affected by its distance from the camera. So, with this camera, an object's size in the rendered image stays constant regardless of its distance from the camera.
|
explicitdelete |
|
explicit |
|
default |
|
deletenoexcept |
|
finaldefault |
|
finalvirtual |
Generates a ray with the origin in the camera.
u | u = x / width |
v | v = y / height |
deviationU | deviationU = [-0.5F / width, 0.5F / width] |
deviationV | deviationV = [-0.5F / height, 0.5F / height] |
Implements MobileRT::Camera.
|
finalvirtual |
Calculates the bounding box of the camera.
Reimplemented from MobileRT::Camera.
float Orthographic::getSizeH | ( | ) | const |
float Orthographic::getSizeV | ( | ) | const |
|
delete |
|
deletenoexcept |
|
private |
|
private |