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

This commit is contained in:
2017-10-03 12:20:32 +00:00
parent b46b9329f3
commit 7ad19d72c5
40 changed files with 320 additions and 712 deletions

View File

@@ -33,6 +33,9 @@ GLVBO::~GLVBO() {
void GLVBO::init() {
#if QT_VERSION >= 0x050600
initializeOpenGLFunctions();
#endif
if (!isIinit()) {
//glGenVertexArrays(1, &va_);
glGenBuffers(1, &buffer_);
@@ -114,7 +117,7 @@ bool GLVBO::rebuffer(bool clear_) {
}
void GLVBO::draw(GLenum type, QGLShaderProgram * prog, bool simplest) {
void GLVBO::draw(GLenum type, __GLShaderProgram__ * prog, bool simplest) {
if (buffer_ == 0 || vert_count == 0) return;
if (changed) rebuffer();
//qDebug() << "draw" << vert_count;