git-svn-id: svn://db.shs.com.ru/libs@44 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user