]> git.tdb.fi Git - libs/gl.git/blobdiff - source/mesh.h
Add WindingTest and support for it in Mesh and Renderer
[libs/gl.git] / source / mesh.h
index 1abbefd39746270d6892d83b2fff3f840e22c6de..190d6f9bce80f7ad74af3b7dc3941f9e69fbfcc2 100644 (file)
@@ -11,6 +11,7 @@ Distributed under the LGPL
 #include <msp/datafile/objectloader.h>
 #include "batch.h"
 #include "vertexarray.h"
+#include "windingtest.h"
 
 namespace Msp {
 namespace GL {
@@ -30,6 +31,7 @@ public:
        private:
                void vertices(VertexFormat);
                void batch(PrimitiveType);
+               void winding(FaceWinding);
        };
 
 private:
@@ -37,6 +39,7 @@ private:
        std::list<Batch> batches;
        Buffer *ibuf;
        bool defer_ibuf;
+       const WindingTest *winding;
 
 public:
        Mesh();
@@ -53,6 +56,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;
 };