Advertisement
Guest User

Untitled

a guest
Jan 20th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. QT += opengl
  2. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  3.  
  4. TARGET = untitled2
  5. TEMPLATE = app
  6.  
  7.  
  8. SOURCES += main.cpp
  9. wopengl.cpp
  10.  
  11. HEADERS +=
  12. wopengl.h
  13.  
  14. #include <QApplication>
  15.  
  16. int main(int argc, char *argv[])
  17. {
  18. QApplication a(argc, argv);
  19.  
  20. return a.exec();
  21. }
  22.  
  23. #ifndef WOPENGL_H
  24. #define WOPENGL_H
  25.  
  26. #include <QGLWidget>
  27.  
  28. class WOpengl : public QGLWidget{
  29. public:
  30. void scene();
  31. };
  32.  
  33. #endif // WOPENGL_H
  34.  
  35. #include "wopengl.h"
  36. #include <QtOpenGL>
  37. #include <GL/gl.h>
  38.  
  39. void WOpengl::scene(){
  40. glVertex3f(0.0, 0.0, 0.0);
  41. }
  42.  
  43. qmake.exe D:filqtsimple_3Duntitled2.pro -spec win32-msvc2015 "CONFIG+=debug" "CONFIG+=qml_debug" && C:/Qt/Qt5.7.1/Tools/QtCreator/bin/jom.exe qmake_all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement