mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-23 20:09:46 +03:00
20 lines
386 B
C++
20 lines
386 B
C++
#pragma once
|
|
|
|
#include "Vec3.hpp"
|
|
#include "Culler.hpp"
|
|
#include "Frustum.hpp"
|
|
|
|
class FrustumCuller : public Culler
|
|
{
|
|
public:
|
|
bool cubeFullyInFrustum(float, float, float, float, float, float);
|
|
bool cubeInFrustum(float, float, float, float, float, float);
|
|
bool isVisible(const AABB&);
|
|
void prepare(float x, float y, float z);
|
|
|
|
public:
|
|
FrustumData m_frustumData;
|
|
Vec3 m_camPos;
|
|
};
|
|
|