#ifndef MSP_GL_MESH_H_
#define MSP_GL_MESH_H_
+#include <string>
+#include <vector>
#include <msp/datafile/objectloader.h>
#include "batch.h"
#include "cullface.h"
VertexArray vertices;
std::vector<Batch> batches;
- Buffer *vbuf;
- Buffer *ibuf;
+ Buffer *vbuf = 0;
+ Buffer *ibuf = 0;
VertexSetup vtx_setup;
- mutable unsigned short dirty;
- bool disallow_rendering;
- FaceWinding face_winding;
+ mutable unsigned short dirty = 0;
+ bool disallow_rendering = false;
+ FaceWinding face_winding = NON_MANIFOLD;
std::string debug_name;
public:
- Mesh(ResourceManager * = 0);
- Mesh(const VertexFormat &, ResourceManager * = 0);
-private:
- void init(ResourceManager *);
-public:
+ Mesh() = default;
+ Mesh(const VertexFormat &);
~Mesh();
void storage(const VertexFormat &);