#include <msp/datafile/objectloader.h>
#include "batch.h"
+#include "cullface.h"
#include "resource.h"
#include "vertexarray.h"
#include "vertexsetup.h"
-#include "windingtest.h"
namespace Msp {
namespace GL {
void vertices();
void vertices_with_format(const std::vector<VertexAttribute> &);
void batch(PrimitiveType);
- void winding(FaceWinding);
};
private:
VertexSetup vtx_setup;
mutable unsigned short dirty;
bool disallow_rendering;
- const WindingTest *winding;
+ FaceWinding face_winding;
std::string debug_name;
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<Batch> &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;