src/gl/partrenderer.cpp

changeset 100
43ce3672648a
parent 92
c438a7db7c52
child 107
02f142b399b1
equal deleted inserted replaced
99:05ce5a34c497 100:43ce3672648a
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #include <glm/ext/matrix_transform.hpp> 19 #include <glm/ext/matrix_transform.hpp>
20 #include <glm/ext/matrix_clip_space.hpp> 20 #include <glm/ext/matrix_clip_space.hpp>
21 #include <GL/glu.h>
21 #include <QMouseEvent> 22 #include <QMouseEvent>
22 #include <QMessageBox> 23 #include <QMessageBox>
23 #include <QAbstractButton> 24 #include <QAbstractButton>
24 #include "geometry.h" 25 #include "geometry.h"
25 #include "partrenderer.h" 26 #include "partrenderer.h"
237 { 238 {
238 GLenum glError; 239 GLenum glError;
239 QStringList errors; 240 QStringList errors;
240 while ((glError = glGetError()) != GL_NO_ERROR) 241 while ((glError = glGetError()) != GL_NO_ERROR)
241 { 242 {
242 const QString glErrorString = QString::fromLatin1(reinterpret_cast<const char*>(::gluErrorString(glError))); 243 const QString glErrorString = QString::fromLatin1(reinterpret_cast<const char*>(gluErrorString(glError)));
243 errors.append(glErrorString); 244 errors.append(glErrorString);
244 } 245 }
245 if (not errors.isEmpty()) 246 if (not errors.isEmpty())
246 { 247 {
247 QMessageBox box{parent}; 248 QMessageBox box{parent};

mercurial