NW4F G3d
Loading...
Searching...
No Matches
nw::g3d::ViewVolume Struct Reference

#include <g3d_ShapeObj.h>

Public Member Functions

void SetPerspective (float fovy, float aspect, float zNear, float zFar, const Mtx34 &viewToWorld)
void SetPerspectiveOffset (float fovy, float aspect, float zNear, float zFar, const Mtx34 &viewToWorld, const Vec2 &offset)
void SetFrustum (float top, float bottom, float left, float right, float zNear, float zFar, const Mtx34 &viewToWorld)
void SetOrtho (float top, float bottom, float left, float right, float zNear, float zFar, const Mtx34 &viewToWorld)
bool TestIntersection (const Sphere &sphere) const
int TestIntersectionEx (const Sphere &sphere) const
bool TestIntersection (const AABB &aabb) const
int TestIntersectionEx (const AABB &aabb) const
void EnableAABB ()
void DisableAABB ()
bool IsAABBEnabled () const

Public Attributes

AABB aabb
Plane planes [6]
int numPlanes
int flag

Member Function Documentation

◆ SetPerspective()

void nw::g3d::ViewVolume::SetPerspective ( float fovy,
float aspect,
float zNear,
float zFar,
const Mtx34 & viewToWorld )

◆ SetPerspectiveOffset()

void nw::g3d::ViewVolume::SetPerspectiveOffset ( float fovy,
float aspect,
float zNear,
float zFar,
const Mtx34 & viewToWorld,
const Vec2 & offset )

◆ SetFrustum()

void nw::g3d::ViewVolume::SetFrustum ( float top,
float bottom,
float left,
float right,
float zNear,
float zFar,
const Mtx34 & viewToWorld )

◆ SetOrtho()

void nw::g3d::ViewVolume::SetOrtho ( float top,
float bottom,
float left,
float right,
float zNear,
float zFar,
const Mtx34 & viewToWorld )

◆ TestIntersection() [1/2]

bool nw::g3d::ViewVolume::TestIntersection ( const Sphere & sphere) const

◆ TestIntersectionEx() [1/2]

int nw::g3d::ViewVolume::TestIntersectionEx ( const Sphere & sphere) const

◆ TestIntersection() [2/2]

bool nw::g3d::ViewVolume::TestIntersection ( const AABB & aabb) const

◆ TestIntersectionEx() [2/2]

int nw::g3d::ViewVolume::TestIntersectionEx ( const AABB & aabb) const

◆ EnableAABB()

void nw::g3d::ViewVolume::EnableAABB ( )
inline

◆ DisableAABB()

void nw::g3d::ViewVolume::DisableAABB ( )
inline

◆ IsAABBEnabled()

bool nw::g3d::ViewVolume::IsAABBEnabled ( ) const
inline

Member Data Documentation

◆ aabb

AABB nw::g3d::ViewVolume::aabb

◆ planes

Plane nw::g3d::ViewVolume::planes[6]

◆ numPlanes

int nw::g3d::ViewVolume::numPlanes

◆ flag

int nw::g3d::ViewVolume::flag