sdl2 now working again I think, but with better cmake
This commit is contained in:
parent
c822075173
commit
3e15b6dfd0
16 changed files with 78 additions and 52 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef ARC_SDL_SPRITESHEET_H_
|
||||
#define ARC_SDL_SPRITESHEET_H_
|
||||
|
||||
#ifdef ARC_SDL
|
||||
#ifdef ARC_SDL2_GRAPHICS
|
||||
#include "arc/graphics/spritesheet.h"
|
||||
#include <SDL.h>
|
||||
|
||||
|
|
@ -10,6 +10,6 @@ struct ARC_Spritesheet {
|
|||
uint32_t *size;
|
||||
};
|
||||
|
||||
#endif // !ARC_SDL
|
||||
#endif // !ARC_SDL2_GRPAHCIS
|
||||
|
||||
#endif // !ARC_SDL_SPRITESHEET_H_
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include "arc/graphics/color.h"
|
||||
#include "arc/math/rectangle.h"
|
||||
|
||||
#ifdef ARC_SDL
|
||||
#ifdef ARC_SDL2_GRAPHICS
|
||||
#include <SDL.h>
|
||||
|
||||
typedef struct ARC_Text {
|
||||
|
|
@ -18,6 +18,6 @@ typedef struct ARC_Text {
|
|||
ARC_Rect bounds;
|
||||
} ARC_Text;
|
||||
|
||||
#endif // !ARC_SDL
|
||||
#endif // !ARC_SDL2_Graphics
|
||||
|
||||
#endif // !ARC_SDL_TEXT_H_
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef ARC_SDL_WINDOW_H_
|
||||
#define ARC_SDL_WINDOW_H_
|
||||
|
||||
#ifdef ARC_SDL
|
||||
#ifdef ARC_SDL2_GRAPHICS
|
||||
#include "arc/graphics/window.h"
|
||||
#include <SDL.h>
|
||||
|
||||
|
|
@ -21,6 +21,6 @@ struct ARC_WindowInfo {
|
|||
Uint32 flags;
|
||||
};
|
||||
|
||||
#endif // !ARC_SDL
|
||||
#endif // !ARC_SDL2_GRAPHICS
|
||||
|
||||
#endif // !ARC_SDL_WINDOW_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue