X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmesh.h;h=190d6f9bce80f7ad74af3b7dc3941f9e69fbfcc2;hb=9efabb345fbcc8fb183597e3a264c9847dd7fa53;hp=9ad924f2a246fe00932dc2744531aa94e7b2d3be;hpb=083578c2ca0aabfa60e8872e23d53e9101795dff;p=libs%2Fgl.git diff --git a/source/mesh.h b/source/mesh.h index 9ad924f2..190d6f9b 100644 --- a/source/mesh.h +++ b/source/mesh.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of libmspgl -Copyright © 2007-2010 Mikko Rasa, Mikkosoft Productions +Copyright © 2007-2011 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -11,11 +11,13 @@ Distributed under the LGPL #include #include "batch.h" #include "vertexarray.h" +#include "windingtest.h" namespace Msp { namespace GL { class Buffer; +class Renderer; class Mesh { @@ -29,6 +31,7 @@ public: private: void vertices(VertexFormat); void batch(PrimitiveType); + void winding(FaceWinding); }; private: @@ -36,6 +39,7 @@ private: std::list batches; Buffer *ibuf; bool defer_ibuf; + const WindingTest *winding; public: Mesh(); @@ -52,7 +56,10 @@ public: void add_batch(const Batch &b); const std::list &get_batches() { return batches; } + void set_winding(const WindingTest *); + void draw() const; + void draw(Renderer &) const; }; } // namespace GL