From: david Date: Wed, 11 Dec 2002 21:49:25 +0000 (+0000) Subject: Have DummyBSphereEntity inherit from ssgBranch instead of ssgEntity, X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c3398c9addf31f831fa060b1317d4a653505d792;p=flightgear.git Have DummyBSphereEntity inherit from ssgBranch instead of ssgEntity, to allow building with the latest plib CVS. Problem identified by Norm Vine. Fix suggested by Steve Baker. --- diff --git a/src/Objects/obj.cxx b/src/Objects/obj.cxx index 2b5f113bc..c9ee8ab3e 100644 --- a/src/Objects/obj.cxx +++ b/src/Objects/obj.cxx @@ -504,7 +504,7 @@ tri_out_of_range_callback (ssgEntity * entity, int mask) * it works and seems fairly efficient (since branches can still * be culled when they're out of the view frustum). */ -class DummyBSphereEntity : public ssgEntity +class DummyBSphereEntity : public ssgBranch { public: DummyBSphereEntity (float radius) @@ -514,10 +514,6 @@ public: } virtual ~DummyBSphereEntity () {} virtual void recalcBSphere () { bsphere_is_invalid = false; } - virtual void cull (sgFrustum *f, sgMat4 m, int test_needed) {} - virtual void isect (sgSphere *s, sgMat4 m, int test_needed) {} - virtual void hot (sgVec3 s, sgMat4 m, int test_needed) {} - virtual void los (sgVec3 s, sgMat4 m, int test_needed) {} };