#ifndef MSP_GL_VERTEXARRAY_H_
#define MSP_GL_VERTEXARRAY_H_
-#include <climits>
#include <vector>
-#include <msp/core/refptr.h>
#include <msp/datafile/loader.h>
#include "bufferable.h"
-#include "datatype.h"
-#include "primitivetype.h"
#include "vertexarraybuilder.h"
#include "vertexformat.h"
namespace Msp {
namespace GL {
-class Buffer;
-
/**
Stores vertex data.
private:
VertexFormat format;
std::vector<char> data;
- unsigned stride;
+ unsigned stride = 0;
VertexArray(const VertexArray &);
VertexArray &operator=(const VertexArray &);
public:
- VertexArray();
+ VertexArray() = default;
/// Construct a VertexArray and set its format.
VertexArray(const VertexFormat &);