From 8bb663a7be895bf1bf019cef8441e51e8d699952 Mon Sep 17 00:00:00 2001 From: octospacc Date: Sat, 6 Aug 2022 01:07:35 +0200 Subject: [PATCH] First commit --- .gitignore | 1 + MultiSpacc.h | 10 ++++++++++ SDL12/SDL.c | 5 +++++ SDL12/SDL.h | 13 +++++++++++++ SDL20/SDL.h | 11 +++++++++++ 5 files changed, 40 insertions(+) create mode 100644 .gitignore create mode 100644 MultiSpacc.h create mode 100644 SDL12/SDL.c create mode 100644 SDL12/SDL.h create mode 100644 SDL20/SDL.h diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/MultiSpacc.h b/MultiSpacc.h new file mode 100644 index 0000000..c7ccf95 --- /dev/null +++ b/MultiSpacc.h @@ -0,0 +1,10 @@ +#pragma once +#include + +#ifdef MultiSpacc_Target_SDL12 + #include "SDL12/SDL.h" +#endif + +#ifdef MultiSpacc_Target_SDL20 + #include "SDL20/SDL.h" +#endif diff --git a/SDL12/SDL.c b/SDL12/SDL.c new file mode 100644 index 0000000..79d0d99 --- /dev/null +++ b/SDL12/SDL.c @@ -0,0 +1,5 @@ +#include + +void MultiSpacc_SetAppTitle( const char *Title ) { + SDL_WM_SetCaption( Title, NULL ); +} diff --git a/SDL12/SDL.h b/SDL12/SDL.h new file mode 100644 index 0000000..ceb661b --- /dev/null +++ b/SDL12/SDL.h @@ -0,0 +1,13 @@ +#pragma once + +#ifndef MultiSpacc_Target_SDL12 + #define MultiSpacc_Target_SDL12 +#endif + +#include "../MultiSpacc.h" +#include "SDL/SDL.h" +#include "SDL/SDL_image.h" +#include "SDL/SDL_mixer.h" +#include "SDL/SDL_ttf.h" + +void MultiSpacc_SetAppTitle( const char *Title ); diff --git a/SDL20/SDL.h b/SDL20/SDL.h new file mode 100644 index 0000000..dd9969b --- /dev/null +++ b/SDL20/SDL.h @@ -0,0 +1,11 @@ +#pragma once + +#ifndef MultiSpacc_Target_SDL20 + #define MultiSpacc_Target_SDL20 +#endif + +#include "../MultiSpacc.h" +#include "SDL2/SDL.h" +#include "SDL2/SDL_image.h" +#include "SDL2/SDL_mixer.h" +#include "SDL2/SDL_ttf.h"