mirror of
https://github.com/aap/librw.git
synced 2025-12-23 02:49:55 +00:00
subsystems and videomodes implemented (except SDL2); smaller fixes too
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user