Implementation of the rendering pipeline.
More...
|
C3D_API | IPipelineImpl (Pipeline &p_pipeline, bool p_rightHanded) |
| Constructor. More...
|
|
virtual C3D_API | ~IPipelineImpl () |
| Destructor. More...
|
|
virtual C3D_API void | ApplyMatrix (Castor::Matrix4x4r const &p_matrix, Castor::String const &p_name, FrameVariableBuffer &p_matrixBuffer) |
| Puts the given matrix in the given frame variables buffer. More...
|
|
virtual C3D_API void | ApplyViewport (int p_windowWidth, int p_windowHeight)=0 |
| Applies the given viewport dimension. More...
|
|
virtual C3D_API void | Perspective (Castor::Matrix4x4r &p_result, Castor::Angle const &p_fovy, real p_aspect, real p_near, real p_far)=0 |
| Builds a matrix that sets a centered perspective projection from the given parameters. More...
|
|
virtual C3D_API void | Frustum (Castor::Matrix4x4r &p_result, real p_left, real p_right, real p_bottom, real p_top, real p_near, real p_far)=0 |
| Builds a matrix that sets a non centered perspective projection from the given parameters. More...
|
|
virtual C3D_API void | Ortho (Castor::Matrix4x4r &p_result, real p_left, real p_right, real p_bottom, real p_top, real p_near, real p_far)=0 |
| Builds a matrix that sets an orthogonal projection. More...
|
|
virtual C3D_API void | LookAt (Castor::Matrix4x4r &p_result, Castor::Point3r const &p_eye, Castor::Point3r const &p_center, Castor::Point3r const &p_up)=0 |
| Builds a view matrix that looks at a given point. More...
|
|
Implementation of the rendering pipeline.
- Author
- Sylvain DOREMUS
- Version
- 0.6.1.0
- Date
- 03/01/2011
◆ IPipelineImpl()
C3D_API Castor3D::IPipelineImpl::IPipelineImpl |
( |
Pipeline & |
p_pipeline, |
|
|
bool |
p_rightHanded |
|
) |
| |
Constructor.
- Parameters
-
[in] | p_pipeline | The parent pipeline. |
[in] | p_rightHanded | Tells if the pipeline is right handed (true) or left handed (false). |
◆ ~IPipelineImpl()
virtual C3D_API Castor3D::IPipelineImpl::~IPipelineImpl |
( |
| ) |
|
|
virtual |
◆ ApplyMatrix()
virtual C3D_API void Castor3D::IPipelineImpl::ApplyMatrix |
( |
Castor::Matrix4x4r const & |
p_matrix, |
|
|
Castor::String const & |
p_name, |
|
|
FrameVariableBuffer & |
p_matrixBuffer |
|
) |
| |
|
virtual |
Puts the given matrix in the given frame variables buffer.
- Parameters
-
[in] | p_matrix | The matrix. |
[in] | p_name | The shader variable name. |
[in] | p_matrixBuffer | The matrix variables buffer. |
◆ ApplyViewport()
virtual C3D_API void Castor3D::IPipelineImpl::ApplyViewport |
( |
int |
p_windowWidth, |
|
|
int |
p_windowHeight |
|
) |
| |
|
pure virtual |
Applies the given viewport dimension.
- Parameters
-
[in] | p_windowWidth,p_windowHeight | The dimensions. |
◆ Frustum()
virtual C3D_API void Castor3D::IPipelineImpl::Frustum |
( |
Castor::Matrix4x4r & |
p_result, |
|
|
real |
p_left, |
|
|
real |
p_right, |
|
|
real |
p_bottom, |
|
|
real |
p_top, |
|
|
real |
p_near, |
|
|
real |
p_far |
|
) |
| |
|
pure virtual |
Builds a matrix that sets a non centered perspective projection from the given parameters.
- Parameters
-
[out] | p_result | The matrix that will receive the result. |
[in] | p_left | Left clipping plane value. |
[in] | p_right | Right clipping plane value. |
[in] | p_bottom | Bottom clipping plane value. |
[in] | p_top | Top clipping plane value. |
[in] | p_near | Near clipping plane value. |
[in] | p_far | Far clipping plane value. |
◆ LookAt()
virtual C3D_API void Castor3D::IPipelineImpl::LookAt |
( |
Castor::Matrix4x4r & |
p_result, |
|
|
Castor::Point3r const & |
p_eye, |
|
|
Castor::Point3r const & |
p_center, |
|
|
Castor::Point3r const & |
p_up |
|
) |
| |
|
pure virtual |
Builds a view matrix that looks at a given point.
- Parameters
-
[out] | p_result | The matrix that will receive the result. |
[in] | p_eye | The eye position. |
[in] | p_center | The point to look at. |
[in] | p_up | The up direction.. |
◆ Ortho()
virtual C3D_API void Castor3D::IPipelineImpl::Ortho |
( |
Castor::Matrix4x4r & |
p_result, |
|
|
real |
p_left, |
|
|
real |
p_right, |
|
|
real |
p_bottom, |
|
|
real |
p_top, |
|
|
real |
p_near, |
|
|
real |
p_far |
|
) |
| |
|
pure virtual |
Builds a matrix that sets an orthogonal projection.
- Parameters
-
[out] | p_result | The matrix that will receive the result. |
[in] | p_left | Left clipping plane value. |
[in] | p_right | Right clipping plane value. |
[in] | p_bottom | Bottom clipping plane value. |
[in] | p_top | Top clipping plane value. |
[in] | p_near | Near clipping plane value. |
[in] | p_far | Far clipping plane value. |
◆ Perspective()
virtual C3D_API void Castor3D::IPipelineImpl::Perspective |
( |
Castor::Matrix4x4r & |
p_result, |
|
|
Castor::Angle const & |
p_fovy, |
|
|
real |
p_aspect, |
|
|
real |
p_near, |
|
|
real |
p_far |
|
) |
| |
|
pure virtual |
Builds a matrix that sets a centered perspective projection from the given parameters.
- Parameters
-
[out] | p_result | The matrix that will receive the result. |
[in] | p_fovy | Y Field of View. |
[in] | p_aspect | Width / Height ratio. |
[in] | p_near | Near clipping plane value. |
[in] | p_far | Far clipping plane value. |
◆ Pipeline
◆ m_pipeline
Pipeline& Castor3D::IPipelineImpl::m_pipeline |
|
protected |
◆ m_rightHanded
bool Castor3D::IPipelineImpl::m_rightHanded |
|
protected |
Tells if the pipeline is right handed (true) or left handed (false).
The documentation for this class was generated from the following file:
- Z:/Projets/C++/Castor3D/source/Core/Castor3D/Src/Pipeline.hpp