VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
vex::Frustum Struct Reference

Represents a frustum in 3D space. More...

#include <frustum.hpp>

Public Member Functions

void update (const glm::mat4 &viewProj)
 Extract planes from View-Projection Matrix.
bool testSphere (const glm::vec3 &center, float radius) const
 Returns true if sphere is visible (or partially visible).

Public Attributes

std::array< Plane, 6 > planes

Detailed Description

Represents a frustum in 3D space.

Definition at line 31 of file frustum.hpp.

Member Function Documentation

◆ testSphere()

bool vex::Frustum::testSphere ( const glm::vec3 & center,
float radius ) const
inline

Returns true if sphere is visible (or partially visible).

Definition at line 62 of file frustum.hpp.

◆ update()

void vex::Frustum::update ( const glm::mat4 & viewProj)
inline

Extract planes from View-Projection Matrix.

Parameters
constglm::mat4& viewProj View-Projection Matrix

Definition at line 36 of file frustum.hpp.

Member Data Documentation

◆ planes

std::array<Plane, 6> vex::Frustum::planes

Definition at line 32 of file frustum.hpp.


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