]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.h
Drop Id tags and copyright notices from files
[libs/gl.git] / source / mesh.h
index 9ad924f2a246fe00932dc2744531aa94e7b2d3be..625cebe267e681aefe3d7949dc0b60f889c250ed 100644 (file)
@@ -1,21 +1,16 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007-2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GL_MESH_H_
 #define MSP_GL_MESH_H_
 
 #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 +24,7 @@ public:
        private:
                void vertices(VertexFormat);
                void batch(PrimitiveType);
+               void winding(FaceWinding);
        };
 
 private:
@@ -36,6 +32,7 @@ private:
        std::list<Batch> batches;
        Buffer *ibuf;
        bool defer_ibuf;
+       const WindingTest *winding;
 
 public:
        Mesh();
@@ -52,7 +49,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