Files
openglplayground/Overlay.hh
2015-03-09 01:11:13 +01:00

32 lines
566 B
C++

#ifndef __OPENGLPLAYGROUND_OVERLAY_HH__
#define __OPENGLPLAYGROUND_OVERLAY_HH__
#include <vector>
#include <glbinding/gl/types.h>
#include "VBOManager.hh"
struct ovlVertexAttribs {
int16_t vertex[2];
uint16_t texCoords[2];
} __attribute__((__packed__));
class Overlay {
public:
Overlay(std::vector<ovlVertexAttribs> const& vas);
Overlay(Overlay const& copy) = delete;
Overlay& operator=(Overlay const& copy) = delete;
~Overlay();
void draw() const;
private:
VBOManager::VBOAlloc vbo_;
gl::GLuint vaID_;
size_t vertices_;
};
#endif