]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.h
Convert svn:ignore to .gitignore
[libs/gl.git] / source / mesh.h
index 9ad924f2a246fe00932dc2744531aa94e7b2d3be..190d6f9bce80f7ad74af3b7dc3941f9e69fbfcc2 100644 (file)
@@ -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 <msp/datafile/objectloader.h>
 #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<Batch> 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<Batch> &get_batches() { return batches; }
 
+       void set_winding(const WindingTest *);
+
        void draw() const;
+       void draw(Renderer &) const;
 };
 
 } // namespace GL