X-Git-Url: https://git.jsancho.org/?p=lugaru.git;a=blobdiff_plain;f=Source%2FMath%2FFrustum.cpp;h=516b9ce65ffb38da79a1b2457bcdf530dca01830;hp=e8b13666a977477f748809893a3cc3d85a859687;hb=8b6e8f3ad7390309795eb35c0959264cb7924402;hpb=531fd8d27258d6c15d6fd221272c74b48602a85a diff --git a/Source/Math/Frustum.cpp b/Source/Math/Frustum.cpp index e8b1366..516b9ce 100644 --- a/Source/Math/Frustum.cpp +++ b/Source/Math/Frustum.cpp @@ -25,7 +25,7 @@ along with Lugaru. If not, see . #include void FRUSTUM:: -GetFrustum() + GetFrustum() { static float projmatrix[16]; static float mvmatrix[16]; @@ -93,7 +93,7 @@ GetFrustum() } int FRUSTUM:: -CubeInFrustum(float x, float y, float z, float size) + CubeInFrustum(float x, float y, float z, float size) { static int c, c2; @@ -127,7 +127,7 @@ CubeInFrustum(float x, float y, float z, float size) } 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; @@ -161,9 +161,9 @@ CubeInFrustum(float x, float y, float z, float size, float height) } 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)