working on getting ARC_Spritesheet and ARC_Sprite for SDL moved over from old ARC_SDL
This commit is contained in:
parent
845b80329e
commit
81b3ed9144
6 changed files with 341 additions and 0 deletions
15
include/arc/graphics/config.h
Normal file
15
include/arc/graphics/config.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef ARC_GRAPHICS_CONFIG_H_
|
||||
#define ARC_GRAPHICS_CONFIG_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// ARC_Config_Create();
|
||||
// ARC_Config_Destroy();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !ARC_GRAPHICS_CONFIG_H_
|
||||
16
include/arc/graphics/sdl/sprite.h
Normal file
16
include/arc/graphics/sdl/sprite.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef ARC_SDL_SPRITE_H_
|
||||
#define ARC_SDL_SPRITE_H_
|
||||
|
||||
#ifdef ARC_SDL
|
||||
|
||||
#include <SDL.h>
|
||||
#include "arc/graphics/spritesheet.h"
|
||||
|
||||
struct ARC_Sprite {
|
||||
ARC_Spritesheet *spritesheet;
|
||||
SDL_Rect *bounds;
|
||||
};
|
||||
|
||||
#endif // ARC_SDL
|
||||
|
||||
#endif // ARC_SDL_SPRITE_H_
|
||||
16
include/arc/graphics/sdl/spritesheet.h
Normal file
16
include/arc/graphics/sdl/spritesheet.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef ARC_SDL_SPRITESHEET_H_
|
||||
#define ARC_SDL_SPRITESHEET_H_
|
||||
|
||||
#ifdef ARC_SDL
|
||||
|
||||
#include <SDL.h>
|
||||
#include "arc/graphics/spritesheet.h"
|
||||
|
||||
struct ARC_Spritesheet {
|
||||
SDL_Texture *texture;
|
||||
uint32_t *size;
|
||||
};
|
||||
|
||||
#endif // ARC_SDL
|
||||
|
||||
#endif // ARC_SDL_SPRITESHEET_H_
|
||||
14
include/arc/graphics/sprite.h
Normal file
14
include/arc/graphics/sprite.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef ARC_GRAPHICS_SPRITE_H_
|
||||
#define ARC_GRAPHICS_SPRITE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct ARC_Sprite ARC_Sprite;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !ARC_GRAPHICS_SPRITE_H_
|
||||
14
include/arc/graphics/spritesheet.h
Normal file
14
include/arc/graphics/spritesheet.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef ARC_GRAPHICS_SPRITESHEET_H_
|
||||
#define ARC_GRAPHICS_SPRITESHEET_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct ARC_Spritesheet ARC_Spritesheet;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // !ARC_GRAPHICS_SPRITESHEET_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue