]> git.mxchange.org Git - flightgear.git/commitdiff
Have DummyBSphereEntity inherit from ssgBranch instead of ssgEntity,
authordavid <david>
Wed, 11 Dec 2002 21:49:25 +0000 (21:49 +0000)
committerdavid <david>
Wed, 11 Dec 2002 21:49:25 +0000 (21:49 +0000)
to allow building with the latest plib CVS.

Problem identified by Norm Vine.
Fix suggested by Steve Baker.

src/Objects/obj.cxx

index 2b5f113bc49b0185ec0b93ea6ebfcc937534130e..c9ee8ab3ed30ae820b291a472324eac690f608f9 100644 (file)
@@ -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) {}
 };