]> git.tdb.fi Git - libs/gl.git/commitdiff
Remove last fragments of rendererless rendering
authorMikko Rasa <tdb@tdb.fi>
Tue, 29 Oct 2019 00:19:43 +0000 (02:19 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 29 Oct 2019 22:03:21 +0000 (00:03 +0200)
source/mesh.cpp
source/mesh.h
source/pipeline.cpp
source/pipeline.h

index e901536535cd04716d973594200700cb8829807a..4b247e8d4f759aa6f68287590207076ff0dbf5cc 100644 (file)
@@ -114,27 +114,6 @@ void Mesh::set_winding(const WindingTest *w)
        winding = w;
 }
 
-void Mesh::draw() const
-{
-       const Mesh *cur = current();
-       if(cur && cur!=this)
-               throw invalid_operation("Mesh::draw");
-
-       if(manager)
-       {
-               manager->resource_used(*this);
-               if(disallow_rendering)
-                       return;
-       }
-
-       BindRestore bind_vtxs(vtx_setup);
-       BindRestore bind_ibuf(ibuf, ELEMENT_ARRAY_BUFFER);
-       Bind bind_winding(winding);
-
-       for(vector<Batch>::const_iterator i=batches.begin(); i!=batches.end(); ++i)
-               i->draw();
-}
-
 void Mesh::draw(Renderer &renderer) const
 {
        if(manager)
index 54ff28031d369affe732031d5a5f6c4d6a3afa01..2de418ae077bff1a9f43621d9051057fd81893e0 100644 (file)
@@ -86,7 +86,6 @@ public:
 
        void set_winding(const WindingTest *);
 
-       void draw() const;
        void draw(Renderer &) const;
        void draw_instanced(Renderer &, const VertexSetup &, unsigned) const;
 
index fa06fc5c0a985021a20353b1752cb849664e2a59..9fcf35188fc42589e280ed33a7e9b6f68aff2266 100644 (file)
@@ -202,14 +202,6 @@ void Pipeline::finish_frame()
                i->renderable->finish_frame();
 }
 
-void Pipeline::render()
-{
-       Renderer renderer(camera);
-       setup_frame(renderer);
-       render(renderer);
-       finish_frame();
-}
-
 void Pipeline::render(Renderer &renderer, const Tag &tag) const
 {
        if(tag.id)
index e8ffaf5ee46f3bcc3500143769e9c4ab2744ab42..d2ce6ab88adc0cd8993e9ad1e68402fb1a001723 100644 (file)
@@ -135,7 +135,6 @@ public:
        virtual void setup_frame(Renderer &);
        virtual void finish_frame();
 
-       void render();
        virtual void render(Renderer &, const Tag &tag = Tag()) const;
 
 private: