subsystems and videomodes implemented (except SDL2); smaller fixes too

This commit is contained in:
aap
2020-04-15 09:47:43 +02:00
parent 5685e6109e
commit 2d345499d2
34 changed files with 778 additions and 229 deletions

View File

@@ -415,10 +415,10 @@ Camera::setProjection(int32 proj)
}
int32
Camera::frustumTestSphere(Sphere *s)
Camera::frustumTestSphere(const Sphere *s) const
{
int32 res = SPHEREINSIDE;
FrustumPlane *p = this->frustumPlanes;
const FrustumPlane *p = this->frustumPlanes;
for(int32 i = 0; i < 6; i++){
float32 dist = dot(p->plane.normal, s->center) - p->plane.distance;
if(s->radius < dist)