Saga3D API Documentation
1.0-RC4
|
Go to the documentation of this file.
5 #ifndef __I_CAMERA_SCENE_NODE_H_INCLUDED__
6 #define __I_CAMERA_SCENE_NODE_H_INCLUDED__
28 ICameraSceneNode(
const std::shared_ptr<ISceneNode>& parent,
const std::shared_ptr<ISceneManager>& mgr,
29 const glm::vec3& position = glm::vec3(0,0,0),
30 const glm::vec3& rotation = glm::vec3(0,0,0),
31 const glm::vec3& scale = glm::vec3(1.0f,1.0f,1.0f))
65 virtual void setTarget(
const glm::vec3& newTarget) = 0;
73 virtual void setRotation(
const glm::vec3& rotation) = 0;
77 virtual const glm::vec3&
getTarget()
const = 0;
101 virtual float getFOV()
const = 0;
117 virtual void setFOV(
float fovy) = 0;
virtual void updateProjectionMatrix()=0
Updates projection matrix.
virtual bool isOrthogonal() const
Checks if a camera is orthogonal.
ICameraSceneNode(const std::shared_ptr< ISceneNode > &parent, const std::shared_ptr< ISceneManager > &mgr, const glm::vec3 &position=glm::vec3(0, 0, 0), const glm::vec3 &rotation=glm::vec3(0, 0, 0), const glm::vec3 &scale=glm::vec3(1.0f, 1.0f, 1.0f))
Constructor.
Type for list of scene node animators.
virtual void setAspectRatio(float aspect)=0
Sets the aspect ratio (default: 4.0f / 3.0f)
Scene Node which is a (controllable) camera.
virtual void setTarget(const glm::vec3 &newTarget)=0
Sets the look at target of the camera.
virtual float getAspectRatio() const =0
Gets the aspect ratio of the camera.
virtual const glm::mat4 & getViewMatrix() const =0
Gets the current view matrix of the camera.
virtual float getFOV() const =0
Gets the field of view of the camera.
virtual const glm::vec3 & getTarget() const =0
Gets the current look at target of the camera.
virtual const glm::vec3 & getUpVector() const =0
Gets the up vector of the camera.
virtual float getFarValue() const =0
Gets the value of the far plane of the camera.
virtual void setUpVector(const glm::vec3 &pos)=0
Sets the up vector of the camera.
virtual void setFarValue(float zf)=0
Sets the value of the far clipping plane (default: 2000.0f)
virtual const glm::mat4 & getProjectionMatrix() const =0
Gets the current projection matrix of the camera.
virtual void updateViewMatrix()=0
Updates view matrix.
virtual float getNearValue() const =0
Gets the value of the near plane of the camera.
virtual void setRotation(const glm::vec3 &rotation)=0
Sets the rotation of the node.
virtual void setFOV(float fovy)=0
Sets the field of view (Default: PI / 2.5f)
virtual void setNearValue(float zn)=0
Sets the value of the near clipping plane. (default: 1.0f)
virtual void setProjectionMatrix(const glm::mat4 &projection, bool isOrthogonal=false)=0
Sets the projection matrix of the camera.
virtual void setViewMatrix(const glm::mat4 &view)=0