#include <Viewport.hpp>
|
C3D_API Viewport & | operator= (Viewport const &rhs)=delete |
|
C3D_API Viewport & | operator= (Viewport &&rhs)=delete |
|
C3D_API | Viewport (Viewport const &rhs) |
|
C3D_API | Viewport (Viewport &&rhs) |
|
C3D_API | Viewport (Engine const &engine) |
| Constructor. More...
|
|
C3D_API | ~Viewport ()=default |
| Destructor. More...
|
|
C3D_API bool | update () |
| Applies the perspective. More...
|
|
C3D_API void | setPerspective (castor::Angle const &fovy, float aspect, float nearZ, float farZ) |
| Builds a centered perspective viewport. More...
|
|
C3D_API void | setFrustum (float left, float right, float bottom, float top, float nearZ, float farZ) |
| Builds a matrix that Sets a non centered perspective projection from the given parameters. More...
|
|
C3D_API void | setOrtho (float left, float right, float bottom, float top, float nearZ, float farZ) |
| Builds a matrix that Sets an orthogonal projection. More...
|
|
C3D_API void | resize (const castor::Size &value) |
| Sets the viewport render size. More...
|
|
C3D_API float | getProjectionScale () const |
|
|
castor::Size const & | getSize () const |
|
castor::Position const & | getPosition () const |
|
ViewportType | getType () const |
|
float | getRatio () const |
|
float | getNear () const |
|
float | getFar () const |
|
castor::Angle const & | getFovY () const |
|
float | getLeft () const |
|
float | getRight () const |
|
float | getTop () const |
|
float | getBottom () const |
|
uint32_t | getWidth () const |
|
uint32_t | getHeight () const |
|
bool | isModified () const |
|
castor::Matrix4x4f const & | getProjection () const |
|
castor::Matrix4x4f const & | getSafeBandedProjection () const |
|
VkViewport const & | getViewport () const |
|
VkRect2D const & | getScissor () const |
|
Engine const & | getEngine () const |
|
|
void | setPosition (const castor::Position &value) |
|
void | updateType (ViewportType value) |
|
void | updateRatio (float value) |
|
void | updateNear (float value) |
|
void | updateFar (float value) |
|
void | updateFovY (castor::Angle const &value) |
|
void | updateLeft (float value) |
|
void | updateRight (float value) |
|
void | updateTop (float value) |
|
void | updateBottom (float value) |
|
◆ Viewport() [1/3]
◆ Viewport() [2/3]
◆ Viewport() [3/3]
◆ ~Viewport()
C3D_API castor3d::Viewport::~Viewport |
( |
| ) |
|
|
default |
◆ getBottom()
float castor3d::Viewport::getBottom |
( |
| ) |
const |
|
inline |
◆ getEngine()
Engine const & castor3d::Viewport::getEngine |
( |
| ) |
const |
|
inline |
◆ getFar()
float castor3d::Viewport::getFar |
( |
| ) |
const |
|
inline |
◆ getFovY()
castor::Angle const & castor3d::Viewport::getFovY |
( |
| ) |
const |
|
inline |
◆ getHeight()
uint32_t castor3d::Viewport::getHeight |
( |
| ) |
const |
|
inline |
◆ getLeft()
float castor3d::Viewport::getLeft |
( |
| ) |
const |
|
inline |
◆ getNear()
float castor3d::Viewport::getNear |
( |
| ) |
const |
|
inline |
◆ getPosition()
castor::Position const & castor3d::Viewport::getPosition |
( |
| ) |
const |
|
inline |
◆ getProjection()
castor::Matrix4x4f const & castor3d::Viewport::getProjection |
( |
| ) |
const |
|
inline |
◆ getProjectionScale()
C3D_API float castor3d::Viewport::getProjectionScale |
( |
| ) |
const |
◆ getRatio()
float castor3d::Viewport::getRatio |
( |
| ) |
const |
|
inline |
◆ getRight()
float castor3d::Viewport::getRight |
( |
| ) |
const |
|
inline |
◆ getSafeBandedProjection()
castor::Matrix4x4f const & castor3d::Viewport::getSafeBandedProjection |
( |
| ) |
const |
|
inline |
◆ getScissor()
VkRect2D const & castor3d::Viewport::getScissor |
( |
| ) |
const |
|
inline |
◆ getSize()
castor::Size const & castor3d::Viewport::getSize |
( |
| ) |
const |
|
inline |
◆ getTop()
float castor3d::Viewport::getTop |
( |
| ) |
const |
|
inline |
◆ getType()
◆ getViewport()
VkViewport const & castor3d::Viewport::getViewport |
( |
| ) |
const |
|
inline |
◆ getWidth()
uint32_t castor3d::Viewport::getWidth |
( |
| ) |
const |
|
inline |
◆ isModified()
bool castor3d::Viewport::isModified |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ resize()
C3D_API void castor3d::Viewport::resize |
( |
const castor::Size & |
value | ) |
|
◆ setFrustum()
C3D_API void castor3d::Viewport::setFrustum |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
nearZ, |
|
|
float |
farZ |
|
) |
| |
Builds a matrix that Sets a non centered perspective projection from the given parameters.
- Parameters
-
[in] | left | Left clipping plane value. |
[in] | right | Right clipping plane value. |
[in] | bottom | Bottom clipping plane value. |
[in] | top | Top clipping plane value. |
[in] | nearZ | Near clipping plane value. |
[in] | farZ | Far clipping plane value. |
◆ setOrtho()
C3D_API void castor3d::Viewport::setOrtho |
( |
float |
left, |
|
|
float |
right, |
|
|
float |
bottom, |
|
|
float |
top, |
|
|
float |
nearZ, |
|
|
float |
farZ |
|
) |
| |
Builds a matrix that Sets an orthogonal projection.
- Parameters
-
[in] | left | Left clipping plane value. |
[in] | right | Right clipping plane value. |
[in] | bottom | Bottom clipping plane value. |
[in] | top | Top clipping plane value. |
[in] | nearZ | Near clipping plane value. |
[in] | farZ | Far clipping plane value. |
◆ setPerspective()
C3D_API void castor3d::Viewport::setPerspective |
( |
castor::Angle const & |
fovy, |
|
|
float |
aspect, |
|
|
float |
nearZ, |
|
|
float |
farZ |
|
) |
| |
Builds a centered perspective viewport.
- Parameters
-
[in] | fovy | Y Field of View. |
[in] | aspect | Width / Height ratio. |
[in] | nearZ | Near clipping plane value. |
[in] | farZ | Far clipping plane value. |
◆ setPosition()
void castor3d::Viewport::setPosition |
( |
const castor::Position & |
value | ) |
|
|
inline |
◆ update()
C3D_API bool castor3d::Viewport::update |
( |
| ) |
|
Applies the perspective.
- Returns
true
if the frustum view has been modified
◆ updateBottom()
void castor3d::Viewport::updateBottom |
( |
float |
value | ) |
|
|
inline |
◆ updateFar()
void castor3d::Viewport::updateFar |
( |
float |
value | ) |
|
|
inline |
◆ updateFovY()
void castor3d::Viewport::updateFovY |
( |
castor::Angle const & |
value | ) |
|
|
inline |
◆ updateLeft()
void castor3d::Viewport::updateLeft |
( |
float |
value | ) |
|
|
inline |
◆ updateNear()
void castor3d::Viewport::updateNear |
( |
float |
value | ) |
|
|
inline |
◆ updateRatio()
void castor3d::Viewport::updateRatio |
( |
float |
value | ) |
|
|
inline |
◆ updateRight()
void castor3d::Viewport::updateRight |
( |
float |
value | ) |
|
|
inline |
◆ updateTop()
void castor3d::Viewport::updateTop |
( |
float |
value | ) |
|
|
inline |
◆ updateType()
◆ TypeName
The documentation for this class was generated from the following file: