X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FSphere.hh;h=7f7a76373dfd7f0d228f33c9c36379c25a57959c;hp=8a9d5e6e0008418ccc9e4885a87d5ad38ffd27e3;hb=25aefe01ef7dbdb603c51411e04b0d6a6107684f;hpb=df541170776dc4ac4f241ca480812bd70bcb6eca diff --git a/src/Moof/Sphere.hh b/src/Moof/Sphere.hh index 8a9d5e6..7f7a763 100644 --- a/src/Moof/Sphere.hh +++ b/src/Moof/Sphere.hh @@ -56,7 +56,7 @@ struct Sphere : public Cullable, public Drawable point(x, y, z), radius(r) {} - inline void init(const Vector3& p, Scalar r) + void init(const Vector3& p, Scalar r) { point = p; radius = r; @@ -65,7 +65,7 @@ struct Sphere : public Cullable, public Drawable void encloseVertices(const Vector3 vertices[], unsigned count); void draw(Scalar alpha = 0.0) const; - bool isVisible(const Camera& cam) const; + bool isVisible(const Frustum& frustum) const; };