Browse Source

Added esc to quit on No Maze screen

master v1.0.6
Kenneth Bruen 3 years ago
parent
commit
011b57f051
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 6
      src/no_maze.cpp
  2. 1
      src/no_maze.h
  3. 2
      y3s2-gui-project.spec

6
src/no_maze.cpp

@ -20,3 +20,9 @@ void NoMazeScreen::display() {
glFlush(); glFlush();
glutSwapBuffers(); glutSwapBuffers();
} }
void NoMazeScreen::keyboard(unsigned char key, int x, int y) {
if (key == '\e') {
exit(EXIT_SUCCESS);
}
}

1
src/no_maze.h

@ -4,4 +4,5 @@
struct NoMazeScreen : public GlutEvents { struct NoMazeScreen : public GlutEvents {
virtual void display(); virtual void display();
virtual void keyboard(unsigned char key, int x, int y);
}; };

2
y3s2-gui-project.spec

@ -1,5 +1,5 @@
Name: y3s2-gui-project Name: y3s2-gui-project
Version: 1.0.5 Version: 1.0.6
Release: 1%{?dist} Release: 1%{?dist}
Summary: Maze project in OpenGL for Graphics and User Interfaces lecture in year 3, semester 2 Summary: Maze project in OpenGL for Graphics and User Interfaces lecture in year 3, semester 2

Loading…
Cancel
Save