#ifndef MBGL_GEOMETRY_VERTEX_BUFFER #define MBGL_GEOMETRY_VERTEX_BUFFER #include #include #include #include namespace mbgl { class VertexBuffer { public: typedef int16_t vertex_type; VertexBuffer(std::initializer_list init); ~VertexBuffer(); /* * Returns the number of elements in this buffer. This is not the number of * bytes, but rather the number of coordinates with associated information. */ size_t index() const; /* * Transfers this buffer to the GPU and binds the buffer to the GL context. */ void bind(); private: const std::vector array; uint32_t buffer = 0; }; } #endif