25#include "common/rect.h"
27#include "math/matrix4.h"
29#include "math/vector3d.h"
46 void initCamera(
const Math::Vector3d &position,
const Math::Vector3d &lookAt,
47 float fov,
Common::Rect viewSize,
float nearClipPlane,
float farClipPlane);
76 float getFadeLevel()
const;
80 Math::Angle getSwayAngle()
const;
87 float getFloatOffset()
const;
91 bool shouldRenderShadows()
const {
return _shouldRenderShadows; }
92 float getMaxShadowLength()
const {
return _maxShadowLength; }
95 void computeClippingRect(
float *xmin,
float *xmax,
float *ymin,
float *ymax);
99 Math::Vector3d _cameraPosition;
100 Math::Vector3d _cameraLookDirection;
104 float _nearClipPlane;
107 Math::Matrix4 _projectionMatrix;
108 Math::Matrix4 _viewMatrix;
111 Math::Angle _swayAngle;
114 bool _shouldRenderShadows;
115 float _maxShadowLength;
void setSwayAngle(const Math::Angle &angle)
void setFloatOffset(float floatOffset)
Math::Ray makeRayFromMouse(const Common::Point &mouse) const
Math::Matrix4 getProjectionMatrix() const
Definition: scene.h:53
void setFadeLevel(float fadeLevel)
Math::Matrix4 getViewMatrix() const
Definition: scene.h:56
Math::Vector3d getSwayDirection() const
Common::Point convertPosition3DToGameScreenOriginal(const Math::Vector3d &obj) const
void setupShadows(bool enabled, float length)
void scrollCamera(const Common::Rect &viewport)