working on getting ARC_Spritesheet and ARC_Sprite for SDL moved over from old ARC_SDL

This commit is contained in:
herbglitch 2022-11-03 21:29:08 -06:00
parent 845b80329e
commit 81b3ed9144
6 changed files with 341 additions and 0 deletions

View 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_

View 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_

View 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_

View 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_

View 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_