This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofCamera.h
Go to the documentation of this file.
118 void setupPerspective(bool vFlip = true, float fov = 60, float nearDist = 0, float farDist = 0, const glm::vec2 & lensOffset = glm::vec2(0.0f, 0.0f));
120 void setupOffAxisViewPortal(const glm::vec3 & topLeft, const glm::vec3 & bottomLeft, const glm::vec3 & bottomRight);
void setForceAspectRatio(bool forceAspectRatio)
Set whether or not the aspect ratio of this camera is forced to a non-default setting.
Definition ofCamera.cpp:54
float getFov() const
Get the camera's field of view, in degrees.
Definition ofCamera.h:81
void setAspectRatio(float aspectRatio)
Set the recommended aspect ratio for a perspective camera.
Definition ofCamera.cpp:48
void setupPerspective(bool vFlip=true, float fov=60, float nearDist=0, float farDist=0, const glm::vec2 &lensOffset=glm::vec2(0.0f, 0.0f))
Definition ofCamera.cpp:59
bool getForceAspectRatio() const
Get the boolean state which indicates whether the aspect ratio of this camera is forced to a non-defa...
Definition ofCamera.h:103
void setRenderer(std::shared_ptr< ofBaseRenderer > renderer)
Definition ofCamera.cpp:244
glm::vec3 screenToWorld(glm::vec3 ScreenXYZ, const ofRectangle &viewport) const
Obtain the coordinates, in the 3D world, of a 2D point presumed to be on your screen.
Definition ofCamera.cpp:191
glm::mat4 getProjectionMatrix() const
Access the projection matrix.
Definition ofCamera.h:167
glm::vec2 getLensOffset() const
Get the "lens offset" applied to this camera, encoded as an glm::vec2.
Definition ofCamera.h:98
glm::vec3 worldToScreen(glm::vec3 WorldXYZ, const ofRectangle &viewport) const
Obtain the screen coordinates of a point in the 3D world.
Definition ofCamera.cpp:179
glm::vec3 worldToCamera(glm::vec3 WorldXYZ, const ofRectangle &viewport) const
Definition ofCamera.cpp:202
glm::mat4 getModelViewMatrix() const
Access the model view matrix.
Definition ofCamera.cpp:169
float getAspectRatio() const
Get the aspect ratio of this camera's viewport.
Definition ofCamera.h:112
std::shared_ptr< ofBaseRenderer > getRenderer() const
Definition ofCamera.cpp:236
void setLensOffset(const glm::vec2 &lensOffset)
Set the "lens offset" applied to this camera.
Definition ofCamera.cpp:43
glm::vec3 cameraToWorld(glm::vec3 CameraXYZ, const ofRectangle &viewport) const
Definition ofCamera.cpp:213
glm::mat4 getModelViewProjectionMatrix() const
Definition ofCamera.h:178
void setupOffAxisViewPortal(const glm::vec3 &topLeft, const glm::vec3 &bottomLeft, const glm::vec3 &bottomRight)
Definition ofCamera.cpp:82
void setFov(float f)
Set the field of view for a perspective camera.
Definition ofCamera.cpp:28
float getImagePlaneDistance(const ofRectangle &viewport=ofRectangle()) const
Definition ofCamera.cpp:131
A generic 3d object in space with transformation (position, rotation, scale).
Definition ofNode.h:14