#include <spProjection.hpp>
List of all members.
Public Member Functions |
| Projection3D () |
| Projection3D (const dim::rect2di &Viewport, const T &NearPlane=Projection3D< T >::DEFAULT_NEAR, const T &FarPlane=Projection3D< T >::DEFAULT_FAR, const T &FieldOfView=Projection3D< T >::DEFAULT_FOV, bool IsOrtho=false) |
| Projection3D (const Projection3D< T > &Other) |
| ~Projection3D () |
Projection3D< T > & | operator= (const Projection3D< T > &Other) |
void | update () const |
const dim::matrix4< T > & | getMatrixLH () const |
const dim::matrix4< T > & | getMatrixRH () const |
void | setViewport (const dim::rect2di &Viewport) |
| Sets the viewport rectangle. By default (0, 0, 100, 100).
|
const dim::rect2di & | getViewport () const |
| Returns the viewport rectangle.
|
void | setNearPlane (const T &NearPlane) |
| Sets the near clipping plane. By default 0.25.
|
const T & | getNearPlane () const |
| Returns the near clipping plane.
|
void | setFarPlane (const T &FarPlane) |
| Sets the far clipping plane. By default 1000.0.
|
const T & | getFarPlane () const |
| Returns the far clipping plane.
|
void | setFOV (const T &FieldOfView) |
| Sets the field of view (FOV). By default 74.0.
|
const T & | getFOV () const |
| Returns the field of view (FOV).
|
void | setZoom (const T &Zoom) |
| Sets the zoom factor. By default 1.0. This uses the setFOV function.
|
T | getZoom () const |
void | setOrtho (bool Enable) |
| Enables or disables orthogonal projection. By default false.
|
bool | getOrtho () const |
| Returns true if orthogonal projection is enabled.
|
Static Public Attributes |
static const dim::rect2di | DEFAULT_VIEWPORT = dim::rect2di(0, 0, 100, 100) |
static const T | DEFAULT_NEAR = T(0.25) |
static const T | DEFAULT_FAR = T(1000) |
static const T | DEFAULT_FOV = T(74) |
Detailed Description
template<typename T>
class sp::scene::Projection3D< T >
Base class for projection matrices.
- See also:
- matrix4
- Since:
- Version 3.2
Constructor & Destructor Documentation
Member Function Documentation
Returns the far clipping plane.
Returns the field of view (FOV).
Returns the left-handed 4x4 projection matrix. This is the default projection matrix. Only use the right-handed projection matrix for the OpenGL render sytsem.
- See also:
- getMatrixRH
Returns the right-handed 4x4 projection matrix. This is only used for the OpenGL render system.
- See also:
- getMatrixLH
Returns the near clipping plane.
Returns true if orthogonal projection is enabled.
Returns the viewport rectangle.
Sets the far clipping plane. By default 1000.0.
Sets the field of view (FOV). By default 74.0.
Sets the near clipping plane. By default 0.25.
Enables or disables orthogonal projection. By default false.
Sets the viewport rectangle. By default (0, 0, 100, 100).
Sets the zoom factor. By default 1.0. This uses the setFOV function.
Member Data Documentation
The documentation for this class was generated from the following file:
- D:/SoftwareEntwicklung/C++/HLC/Tools/SoftPixelEngine/repository/sources/Base/spProjection.hpp