|
3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
|
Represents a screen viewport for rendering. More...
#include <Viewport.hpp>
Public Member Functions | |
| Viewport (Internal.RectangleF r, float mind, float maxd) | |
| Viewport ()=default | |
| Viewport (Math::RectangleF r, float mind, float maxd) | |
| Math::Vector3 | Unproject (const Math::Vector3 &source, const Math::Matrix4x4 &projection, const Math::Matrix4x4 &view, const Math::Matrix4x4 &world) const |
| Unprojects a screen space point to world space using the given projection, view and world matrices. | |
Public Attributes | |
| Internal.RectangleF | ScreenRectangle |
| float | MinDepth = 0.0f |
| Minimal depth value of this viewport. Default is 0.0f. | |
| float | MaxDepth = 1.0f |
| Maximum depth value of this viewport. Default is 1.0f. | |
| Math::RectangleF | ScreenRectangle |
| Screen coordinates of this viewport. | |
Represents a screen viewport for rendering.
|
inline |
|
default |
|
inline |
| Vector3 Viewport::Unproject | ( | const Math::Vector3 & | source, |
| const Math::Matrix4x4 & | projection, | ||
| const Math::Matrix4x4 & | view, | ||
| const Math::Matrix4x4 & | world ) const |
Unprojects a screen space point to world space using the given projection, view and world matrices.
| source | The screen space point to unproject. |
| projection | The projection matrix. |
| view | The view matrix. |
| world | The world matrix. |
| float Engine3DRadSpace.Graphics.Viewport.MaxDepth = 1.0f |
Maximum depth value of this viewport. Default is 1.0f.
| float Engine3DRadSpace.Graphics.Viewport.MinDepth = 0.0f |
Minimal depth value of this viewport. Default is 0.0f.
| Internal.RectangleF Engine3DRadSpace.Graphics.Viewport.ScreenRectangle |
Screen coordinates of this viewport.