HPC_Voxel_Engine 0.2.0
High-Performance C++ Voxel Engine
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
Frustum Class Reference

Represents the camera's viewing volume. Used for Culling. More...

#include <src/renderer/Frustum.h>

Collaboration diagram for Frustum:
Collaboration graph

Public Member Functions

 Frustum ()=default
 
void Update (const Core::Mat4 &viewProjMatrix)
 Extracts the 6 frustum planes from the View-Projection matrix. Uses the Gribb-Hartmann method.
 
bool IsBoxInVisibleFrustum (const AABB &box) const
 Checks if an AABB is visible within the frustum. Uses the "Center + Extent" method for high performance.
 

Private Attributes

std::array< Plane, 6 > m_arrPlanes
 

Detailed Description

Represents the camera's viewing volume. Used for Culling.

Constructor & Destructor Documentation

◆ Frustum()

Frustum::Frustum ( )
default

Member Function Documentation

◆ IsBoxInVisibleFrustum()

bool Frustum::IsBoxInVisibleFrustum ( const AABB box) const

Checks if an AABB is visible within the frustum. Uses the "Center + Extent" method for high performance.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Update()

void Frustum::Update ( const Core::Mat4 viewProjMatrix)

Extracts the 6 frustum planes from the View-Projection matrix. Uses the Gribb-Hartmann method.

Here is the caller graph for this function:

Member Data Documentation

◆ m_arrPlanes

std::array<Plane, 6> Frustum::m_arrPlanes
private

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