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

34 lines
630 B
C++

#ifndef __OPENGLPLAYGROUND_OBJECT_HH__
#define __OPENGLPLAYGROUND_OBJECT_HH__
#include <vector>
#include <glbinding/gl/types.h>
#include "objectParser.hh"
#include "VBOManager.hh"
class Object {
public:
Object(std::vector<objVertexAttribs> const& vas,
std::vector<uint16_t> indice);
Object(std::string const& filename);
Object(Object const& copy) = delete;
~Object();
Object& operator=(Object const& copy) = delete;
void draw() const;
private:
void construct(std::vector<objVertexAttribs> const& vas);
VBOManager::VBOAlloc _vbo;
std::vector<uint16_t> _indices;
gl::GLuint _vaID;
};
#endif