SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::ViewFrustum Class Reference

#include <ViewFrustum.hpp>

Public Types

enum  {
  Left = 0 , Right , Bottom , Top ,
  Near , Far , COUNT
}
 Index of each plane within ViewFrustum::planes. More...

Public Member Functions

void ExtractFromVP (const Math::Matrix4 &m)
bool IsAABBVisible (const Math::Vector3D &min, const Math::Vector3D &max) const

Public Attributes

Plane planes [COUNT]

Detailed Description

Six-plane view frustum, extracted from a view-projection matrix and used for CPU-side AABB visibility tests.

Definition at line 35 of file ViewFrustum.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Index of each plane within ViewFrustum::planes.

Enumerator
Left 
Right 
Bottom 
Top 
Near 
Far 
COUNT 

Definition at line 38 of file ViewFrustum.hpp.

Member Function Documentation

◆ ExtractFromVP()

void Sleak::ViewFrustum::ExtractFromVP ( const Math::Matrix4 & m)
inline

Definition at line 43 of file ViewFrustum.hpp.

◆ IsAABBVisible()

bool Sleak::ViewFrustum::IsAABBVisible ( const Math::Vector3D & min,
const Math::Vector3D & max ) const
inline

Definition at line 87 of file ViewFrustum.hpp.

Member Data Documentation

◆ planes

Plane Sleak::ViewFrustum::planes[COUNT]

Definition at line 39 of file ViewFrustum.hpp.