diff options
Diffstat (limited to 'yage/core/core.h')
-rw-r--r-- | yage/core/core.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/yage/core/core.h b/yage/core/core.h new file mode 100644 index 00000000..2d89955f --- /dev/null +++ b/yage/core/core.h @@ -0,0 +1,37 @@ +/** --------------------------------------------------------------------------- + * @file: core.h + * + * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> + * MIT License, see LICENSE file for more details. + * ---------------------------------------------------------------------------- + */ + +/** + * Project namespace. + * + * Avoids collision as all the classes and global functions are wrapped in. + */ +namespace yage +{ + +/** + * + */ +extern void glfwErrorCallback(int, const char *); + +/** + * Initializes YAGE. + * + * This is there to initialize GLFW, which is the current + * window manager that is used with OpenGL. + */ +extern void init(); + +/** + * Quit and cleanup YAGE. + * + * This also cleans up GLFW after it was initialized. + */ +extern void quit(); + +} // namespace yage |