X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Fmesh.h;h=0111bb7798908348cfb09080631c29d7c3e1f6cc;hp=66516267554447968a10912bbc47cdcda9b816de;hb=d493917dbc215cd6ba3f8773a52a289d9f14380d;hpb=d40673bd28c4b4524d3642b949d9d109dc6f9f24 diff --git a/source/core/mesh.h b/source/core/mesh.h index 66516267..0111bb77 100644 --- a/source/core/mesh.h +++ b/source/core/mesh.h @@ -3,10 +3,10 @@ #include #include "batch.h" +#include "cullface.h" #include "resource.h" #include "vertexarray.h" #include "vertexsetup.h" -#include "windingtest.h" namespace Msp { namespace GL { @@ -36,7 +36,6 @@ public: void vertices(); void vertices_with_format(const std::vector &); void batch(PrimitiveType); - void winding(FaceWinding); }; private: @@ -70,7 +69,7 @@ private: VertexSetup vtx_setup; mutable unsigned short dirty; bool disallow_rendering; - const WindingTest *winding; + FaceWinding face_winding; std::string debug_name; public: @@ -92,12 +91,12 @@ public: const VertexSetup &get_vertex_setup() const { return vtx_setup; } const Buffer *get_index_buffer() const { return ibuf; } unsigned get_n_vertices() const; - float *modify_vertex(unsigned); + char *modify_vertex(unsigned); void add_batch(const Batch &b); const std::vector &get_batches() const { return batches; } - void set_winding(const WindingTest *); + void set_winding(FaceWinding); void draw(Renderer &) const; void draw_instanced(Renderer &, const VertexSetup &, unsigned) const;