summary refs log tree commit diff
path: root/src/Game.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Game.cc')
-rw-r--r--src/Game.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/Game.cc b/src/Game.cc
new file mode 100644
index 0000000..be16a7a
--- /dev/null
+++ b/src/Game.cc
@@ -0,0 +1,28 @@
+// Main function
+// Copyright (C) 2002  David Rosen
+// Copyright (C) 2021  Nguyễn Gia Phong
+//
+// This file is part of Black Shades.
+//
+// Black Shades is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Black Shades is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Black Shades.  If not, see <https://www.gnu.org/licenses/>.
+
+#include "Game.h"
+
+void run()
+{
+	Game game {};
+	game.InitGL();
+	game.InitGame();
+	game.EventLoop();
+}