]> 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 1abbefd39746270d6892d83b2fff3f840e22c6de..625cebe267e681aefe3d7949dc0b60f889c250ed 100644 (file)
@@ -1,16 +1,10 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2007-2011  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 {
@@ -30,6 +24,7 @@ public:
        private:
                void vertices(VertexFormat);
                void batch(PrimitiveType);
+               void winding(FaceWinding);
        };
 
 private:
@@ -37,6 +32,7 @@ private:
        std::list<Batch> batches;
        Buffer *ibuf;
        bool defer_ibuf;
+       const WindingTest *winding;
 
 public:
        Mesh();
@@ -53,6 +49,8 @@ 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;
 };