basic sdl init graphics and engine implementaiton

This commit is contained in:
herbglitch 2022-10-29 00:22:23 -06:00
parent db1adbb838
commit 685364929b
18 changed files with 257 additions and 7 deletions

View file

@ -0,0 +1,22 @@
#ifndef ARC_SDL_RENDERER_H_
#define ARC_SDL_RENDERER_H_
#ifdef ARC_SDL
#include <SDL.h>
/**
* @brief struct for info needed to create SDL_Renderer
*
* @note this is what needs to be passed into the data parameter for ARC_Renderer_Create
*/
struct ARC_RenderInfo {
ARC_Window *window;
int index;
Uint32 flags;
} ARC_RenderInfo;
#endif // ARC_SDL
#endif // ARC_SDL_RENDERER_H_

View file

@ -0,0 +1,25 @@
#ifndef ARC_SDL_RENDERER_H_
#define ARC_SDL_RENDERER_H_
#ifdef ARC_SDL
#include <SDL.h>
/**
* @brief struct for info needed to create SDL_Window
*
* @note this is what needs to be passed into the data parameter for ARC_Window_Create
*/
struct ARC_WindowInfo {
char *title;
int x;
int y;
int w;
int h;
Uint32 flags;
} ARC_WindowInfo;
#endif // ARC_SDL
#endif // ARC_SDL_RENDERER_H_