From: Mikko Rasa Date: Wed, 11 Sep 2013 09:02:11 +0000 (+0300) Subject: Rename Culler::setup_frame to setup_pass X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=0777840f31274f75cb4ff8e6717c44c373d5e182;p=libs%2Fgl.git Rename Culler::setup_frame to setup_pass It's really called once per pass, so name it accordingly. --- diff --git a/source/culler.h b/source/culler.h index c813f8d1..97dbcef3 100644 --- a/source/culler.h +++ b/source/culler.h @@ -14,7 +14,7 @@ protected: public: virtual ~Culler() { } - virtual void setup_frame(const Renderer &) { }; + virtual void setup_pass(const Renderer &) { }; virtual bool cull(const Renderer &, const Renderable &) const = 0; }; diff --git a/source/frustumculler.cpp b/source/frustumculler.cpp index 5401d845..ca7a3a2d 100644 --- a/source/frustumculler.cpp +++ b/source/frustumculler.cpp @@ -8,7 +8,7 @@ namespace Msp { namespace GL { -void FrustumCuller::setup_frame(const Renderer &renderer) +void FrustumCuller::setup_pass(const Renderer &renderer) { const Camera *camera = renderer.get_camera(); if(!camera) diff --git a/source/frustumculler.h b/source/frustumculler.h index d6f07486..cef3bb8c 100644 --- a/source/frustumculler.h +++ b/source/frustumculler.h @@ -13,7 +13,7 @@ private: Vector3 edges[4]; public: - virtual void setup_frame(const Renderer &); + virtual void setup_pass(const Renderer &); virtual bool cull(const Renderer &, const Renderable &) const; }; diff --git a/source/scene.cpp b/source/scene.cpp index 517158f0..3f0261f4 100644 --- a/source/scene.cpp +++ b/source/scene.cpp @@ -28,7 +28,7 @@ void Scene::render(const Tag &tag) const void Scene::setup_cullers(const Renderer &renderer) const { for(list::const_iterator i=cullers.begin(); i!=cullers.end(); ++i) - (*i)->setup_frame(renderer); + (*i)->setup_pass(renderer); } bool Scene::cull(const Renderer &renderer, const Renderable &renderable) const