git-svn-id: svn://db.shs.com.ru/libs@44 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-11-20 21:19:36 +00:00
parent cabaead1c6
commit 104a7f99ad
48 changed files with 1973 additions and 1273 deletions

View File

@@ -31,9 +31,9 @@ public:
//GLVBO & operator =(const GLVBO & o) {return *this;}
void init();
void destroy() {deleteGLBuffer(buffer_);}
void destroy();
bool rebuffer(bool clear_ = false);
void draw(GLenum type, bool simplest = false);
void draw(GLenum type, QGLShaderProgram * prog, bool simplest = false);
void clear();
GLuint buffer() const {return buffer_;}
@@ -52,7 +52,7 @@ public:
private:
QVector<GLfloat> vertices_, normals_, texcoords_, colors_;
GLenum usage;
GLuint buffer_;
GLuint buffer_, va_;
int vert_count;
bool changed, has_normals, has_texcoords, has_colors;