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)
void set_winding(const WindingTest *);
- void draw() const;
void draw(Renderer &) const;
void draw_instanced(Renderer &, const VertexSetup &, unsigned) const;
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)
virtual void setup_frame(Renderer &);
virtual void finish_frame();
- void render();
virtual void render(Renderer &, const Tag &tag = Tag()) const;
private: