Guest User

Untitled

a guest
Jul 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. enum directions{
  2. UP,
  3. DOWN,
  4. RIGHT,
  5. LEFT,
  6. IN,
  7. OUT,
  8. FW,
  9. RW
  10. };
  11.  
  12. class Snake
  13. {
  14. private:
  15. enum directions head_dir;
  16. enum directions head_dir_ask; //if I comment this... the program work fine..
  17. (... other stuff...)
  18. };
  19.  
  20. MainProject::MainProject(QWidget *parent) :
  21. QMainWindow(parent),
  22. ui(new Ui::MainProject)
  23. {
  24. ui->setupUi(this);
  25. startTimer(1000);
  26. glwidget = new MyGLBox(ui->centralWidget);
  27. ui->GLlayout->addWidget(glwidget); // <line where the complier retruns the EXC_BAD_ACCESS
  28. }
  29.  
  30. MyGLBox::MyGLBox(QWidget *parent):QGLWidget(parent){
  31. XRot = YRot = ZRot = 0;
  32. theta1 = theta2 = phi = 0;
  33. }
Add Comment
Please, Sign In to add comment