| 87 this->shader.bufferData(&data[0], countof(data), sizeof data[0]); |
87 this->shader.bufferData(&data[0], countof(data), sizeof data[0]); |
| 88 } |
88 } |
| 89 |
89 |
| 90 void AxesLayer::paintGL() |
90 void AxesLayer::paintGL() |
| 91 { |
91 { |
| |
92 glLineWidth(5); |
| |
93 glEnable(GL_LINE_SMOOTH); |
| |
94 glHint(GL_LINE_SMOOTH_HINT, GL_NICEST); |
| 92 this->shader.draw(GL_LINES); |
95 this->shader.draw(GL_LINES); |
| |
96 glDisable(GL_LINE_SMOOTH); |
| 93 } |
97 } |
| 94 |
98 |
| 95 void AxesLayer::mvpMatrixChanged(const glm::mat4& mvpMatrix) |
99 void AxesLayer::mvpMatrixChanged(const glm::mat4& mvpMatrix) |
| 96 { |
100 { |
| 97 this->shader.setMvpMatrix(mvpMatrix); |
101 this->shader.setMvpMatrix(mvpMatrix); |