From 39ca43ca3b24dcae76e1283ec8af4a16c845e2b7 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 20 Sep 2017 00:29:45 +0100 Subject: More tests and adding spritesheet support --- yage/yage.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'yage/yage.h') diff --git a/yage/yage.h b/yage/yage.h index 286d4784..f20aff06 100644 --- a/yage/yage.h +++ b/yage/yage.h @@ -50,19 +50,13 @@ namespace yage * * @return Returns true if the initialization was successful. */ -bool init() -{ - return SDL_Init(SDL_INIT_VIDEO); -} +extern bool init(); /** Quit and cleanup yage * * SDL2 needs to clean itself up. */ -void quit() -{ - SDL_Quit(); -} +extern void quit(); } // namespace yage -- cgit From 977b8f16d7ef43101b6ef588f9610f34285fa7e6 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 20 Sep 2017 23:01:12 +0100 Subject: Replacing SDL by glfw --- yage/yage.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'yage/yage.h') diff --git a/yage/yage.h b/yage/yage.h index f20aff06..4fce87dc 100644 --- a/yage/yage.h +++ b/yage/yage.h @@ -26,15 +26,10 @@ #include "base/vertex.h" #include "base/window.h" +#include "physics/body.h" +#include "physics/particlebody.h" #include "physics/rectanglecollider.h" #include "physics/rigidbody.h" -#include "physics/particlebody.h" -#include "physics/body.h" - - -#include - -#include /** Project namespace. * @@ -44,17 +39,19 @@ namespace yage { +extern void glfwErrorCallback(int, const char *); + /** Initializes yage. * - * This is only there to initialize SDL2. + * This is only there to initialize glfw. * * @return Returns true if the initialization was successful. */ -extern bool init(); +extern void init(); /** Quit and cleanup yage * - * SDL2 needs to clean itself up. + * glfw needs to clean itself up. */ extern void quit(); -- cgit