src/gl/axesprogram.cpp

changeset 118
8e1c9f18ae15
parent 74
6b51e7b7c459
child 215
34c6e7bc4ee1
equal deleted inserted replaced
117:121a40d5e34c 118:8e1c9f18ae15
110 } 110 }
111 const int stride = this->vertexSize(); 111 const int stride = this->vertexSize();
112 this->program->setAttributeBuffer(0, GL_FLOAT, offsetof(AxesVertex, position), 3, stride); 112 this->program->setAttributeBuffer(0, GL_FLOAT, offsetof(AxesVertex, position), 3, stride);
113 this->program->setAttributeBuffer(1, GL_FLOAT, offsetof(AxesVertex, color), 3, stride); 113 this->program->setAttributeBuffer(1, GL_FLOAT, offsetof(AxesVertex, color), 3, stride);
114 } 114 }
115
116 QOpenGLBuffer::UsagePattern AxesProgram::usagePattern() const
117 {
118 return QOpenGLBuffer::StaticDraw;
119 }

mercurial