#include <math.h>
void FRUSTUM::
-GetFrustum()
+ GetFrustum()
{
static float projmatrix[16];
static float mvmatrix[16];
}
int FRUSTUM::
-CubeInFrustum(float x, float y, float z, float size)
+ CubeInFrustum(float x, float y, float z, float size)
{
static int c, c2;
}
int FRUSTUM::
-CubeInFrustum(float x, float y, float z, float size, float height)
+ CubeInFrustum(float x, float y, float z, float size, float height)
{
static int c, c2;
}
int FRUSTUM::
-SphereInFrustum(float x, float y, float z, float radius)
+ SphereInFrustum(float x, float y, float z, float radius)
{
- static int c2;
+ static int c2;
for (int i = 0; i < 6; i++) {
if (frustum[i][0] * x + frustum[i][1] * y + frustum[i][2] * z + frustum[i][3] > -1 * radius)