RAMSES Documentation  27.0.130
Information for RAMSES users and developers
PerspectiveCamera.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // Copyright (C) 2014 BMW Car IT GmbH
3 // -------------------------------------------------------------------------
4 // This Source Code Form is subject to the terms of the Mozilla Public
5 // License, v. 2.0. If a copy of the MPL was not distributed with this
6 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
7 // -------------------------------------------------------------------------
8 
9 #ifndef RAMSES_PERSPECTIVECAMERA_H
10 #define RAMSES_PERSPECTIVECAMERA_H
11 
13 
14 namespace ramses
15 {
23  {
24  public:
28  using Camera::setFrustum;
29 
52  status_t setFrustum(float fov, float aspectRatio, float nearPlane, float farPlane);
53 
61  float getVerticalFieldOfView() const;
62 
70  float getAspectRatio() const;
71 
72  protected:
76  friend class SceneImpl;
77 
83  explicit PerspectiveCamera(CameraNodeImpl& pimpl);
84 
86  virtual ~PerspectiveCamera();
87  };
88 }
89 
90 #endif
#define RAMSES_API
Definition: APIExport.h:35
The Camera base class is part of a scene and defines a view into the scene defined by the client appl...
Definition: Camera.h:26
status_t setFrustum(float leftPlane, float rightPlane, float bottomPlane, float topPlane, float nearPlane, float farPlane)
Sets camera frustum planes of the Camera.
The PerspectiveCamera is a local camera which defines a perspective view into the scene.
Definition: PerspectiveCamera.h:23
PerspectiveCamera(CameraNodeImpl &pimpl)
Constructor for PerspectiveCamera.
float getVerticalFieldOfView() const
Gets the vertical field of view opening angle in degrees.
float getAspectRatio() const
Gets the aspect ratio between camera frustum width and height (set via setFrustum,...
status_t setFrustum(float fov, float aspectRatio, float nearPlane, float farPlane)
An alternative method (see ramses::Camera::setFrustum) to set the perspective view frustum of the cam...
The RAMSES namespace contains all client side objects and functions used to implement RAMSES applicat...
Definition: AnimatedProperty.h:15
uint32_t status_t
Status is a handle to the result of an API call.
Definition: RamsesFrameworkTypes.h:26