|
resonance 1.0.1
|
Six-plane view volume. More...
#include <frustum.h>

Public Member Functions | |
| Frustum & | Set (float flNear, float flFar, float flFov, float flAspect) |
| Build the six planes of a perspective view volume. | |
Public Attributes | |
| Plane | mFront |
| Plane | mBack |
| Plane | mLeft |
| Plane | mRight |
| Plane | mTop |
| Plane | mBottom |
Six-plane view volume.
The class is not polymorphic and emits no RTTI descriptor, so the name is inferred. The member order and the member titles both come from the dump routine at 0x0054f798, which walks six consecutive quadwords and writes them under "\n\tfront:", "\n\tback:", "\n\tleft:", "\n\tright:", "\n\ttop:", and "\n\tbottom:". The order is therefore recovered rather than assumed, and it is not the order the per-vertex clip flags of Rnd::DrawVert use.
| Frustum & Frustum::Set | ( | float | flNear, |
| float | flFar, | ||
| float | flFov, | ||
| float | flAspect ) |
Build the six planes of a perspective view volume.
Every plane is expressed in camera space. A caller that needs world space therefore transforms the result afterwards. Rnd::Cam::UpdateProjection() is the only caller recovered.
The four side planes pass through the origin unless flFov is zero. A zero flFov gives each side plane the distance of the unit offset it is built through.
| flNear | Distance to the near plane. |
| flFar | Distance to the far plane. |
| flFov | Field of view in radians. |
| flAspect | Vertical extent divided by the horizontal extent. |
| Plane Frustum::mFront |
| Plane Frustum::mBack |
| Plane Frustum::mLeft |
| Plane Frustum::mRight |
| Plane Frustum::mTop |
| Plane Frustum::mBottom |