Krig Game Engine
Loading...
Searching...
No Matches
Frustum.h
Go to the documentation of this file.
1
7#ifndef _FRUSTUM_H_
8#define _FRUSTUM_H_
9
10#include "Plane.h"
11#include "Sphere.h"
12
13#define NUM_PLANES 6
14
15class Frustum {
16 public:
17 Frustum();
18 ~Frustum();
19
20 void extractFromProjectionMatrix(const Matrix& m);
21 void getPlaneDefinition(const int&, float&, float&, float&, float&);
22
32 int testSphere(const Sphere& sphere);
33 int testBoundingBox();
34
35 private:
36 // 0 - left, 1 - right, 2 - bottom, 3 - top, 4 - far, 5 - near
37 Plane planes[NUM_PLANES];
38};
39
40#endif
Representation of a plane.
represent and operate on a sphere.
int testSphere(const Sphere &sphere)
Definition Frustum.cpp:65
Definition Matrix.h:16
Definition Plane.h:13
Definition Sphere.h:13