ScummVM API documentation
hpl::cFrustum Class Reference

Public Member Functions

void SetViewProjMatrix (const cMatrixf &a_mtxProj, const cMatrixf &a_mtxView, float afFarPlane, float afNearPlane, float afFOV, float afAspect, const cVector3f &avOrigin, bool abInfFarPlane=false)
 
cPlanef GetPlane (eFrustumPlane aType)
 
eFrustumCollision CollideBoundingVolume (cBoundingVolume *aBV)
 
eFrustumCollision CollideFustrumSphere (cBoundingVolume *aBV)
 
eFrustumCollision CollideBVSphere (cBoundingVolume *aBV)
 
eFrustumCollision CollideBVAABB (cBoundingVolume *aBV)
 
bool CheckLineIntersection (const cVector3f &avPoint1, const cVector3f &avPoint2)
 
bool CheckQuadMeshIntersection (tVector3fVec *apPoints)
 
bool CheckVolumeIntersection (cShadowVolumeBV *apVolume)
 
cSpheref GetBoundingSphere ()
 
const cBoundingVolumeGetBoundingVolume ()
 
const cVector3fGetOrigin ()
 
cBoundingVolumeGetOriginBV ()
 
cVector3f GetForward ()
 
void Draw (iLowLevelGraphics *apLowLevelGraphics)
 

Member Function Documentation

◆ CheckLineIntersection()

bool hpl::cFrustum::CheckLineIntersection ( const cVector3f avPoint1,
const cVector3f avPoint2 
)

Checks intersection with a line

◆ CheckQuadMeshIntersection()

bool hpl::cFrustum::CheckQuadMeshIntersection ( tVector3fVec apPoints)

Checks intersection with a quad mesh.

Parameters
apPointsthe points of the quad mesh, every 4 points is a face.

The documentation for this class was generated from the following file: