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 } |