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);
72 Common::Point convertPosition3DToGameScreenOriginal(
const Math::Vector3d &obj)
const;
75 void setFadeLevel(
float fadeLevel);
76 float getFadeLevel()
const;
79 void setSwayAngle(
const Math::Angle &angle);
80 Math::Angle getSwayAngle()
const;
83 Math::Vector3d getSwayDirection()
const;
86 void setFloatOffset(
float floatOffset);
87 float getFloatOffset()
const;
90 void setupShadows(
bool enabled,
float length);
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;
120 #endif // STARK_SCENE_H
Math::Matrix4 getViewMatrix() const
Definition: scene.h:56
Math::Matrix4 getProjectionMatrix() const
Definition: scene.h:53