aboutsummaryrefslogtreecommitdiffstats
path: root/yage/yage.h
diff options
context:
space:
mode:
Diffstat (limited to 'yage/yage.h')
-rw-r--r--yage/yage.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/yage/yage.h b/yage/yage.h
new file mode 100644
index 00000000..4fce87dc
--- /dev/null
+++ b/yage/yage.h
@@ -0,0 +1,60 @@
+/* ----------------------------------------------------------------------------
+ * yage.h
+ *
+ * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
+ * See file LICENSE for more details
+ * ----------------------------------------------------------------------------
+ */
+
+/** @file Includes all the headers in the main yage project.
+ *
+ * This does not include
+ */
+
+#ifndef YAGE_YAGE_H
+#define YAGE_YAGE_H
+
+#include "base/camera2d.h"
+#include "base/glslprogram.h"
+#include "base/imageloader.h"
+#include "base/inputmanager.h"
+#include "base/iomanager.h"
+#include "base/picopng.h"
+#include "base/resourcemanager.h"
+#include "base/spritebatch.h"
+#include "base/texture.h"
+#include "base/vertex.h"
+#include "base/window.h"
+
+#include "physics/body.h"
+#include "physics/particlebody.h"
+#include "physics/rectanglecollider.h"
+#include "physics/rigidbody.h"
+
+/** Project namespace.
+ *
+ * Avoids collision as all the classes and global functions are wrapped in.
+ * it.
+ */
+namespace yage
+{
+
+extern void glfwErrorCallback(int, const char *);
+
+/** Initializes yage.
+ *
+ * This is only there to initialize glfw.
+ *
+ * @return Returns true if the initialization was successful.
+ */
+extern void init();
+
+/** Quit and cleanup yage
+ *
+ * glfw needs to clean itself up.
+ */
+extern void quit();
+
+} // namespace yage
+
+#endif