sdl initializing and deinitializing with temp code

This commit is contained in:
herbglitch 2022-10-29 16:08:41 -06:00
parent df8c7f7ff1
commit c0780b7188
9 changed files with 102 additions and 41 deletions

View file

@ -1,16 +1,25 @@
#ifndef ARC_SDL_RENDERER_H_
#define ARC_SDL_RENDERER_H_
#ifndef ARC_SDL_WINDOW_H_
#define ARC_SDL_WINDOW_H_
#ifdef ARC_SDL
#ifdef __cplusplus
extern "C" {
#endif
#include <SDL.h>
#include "arc/graphics/window.h"
// Temp till I figure out a better solution
struct ARC_Window {
SDL_Window *window;
};
/**
* @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;
@ -18,8 +27,12 @@ struct ARC_WindowInfo {
int w;
int h;
Uint32 flags;
} ARC_WindowInfo;
};
#ifdef __cplusplus
}
#endif
#endif // ARC_SDL
#endif // ARC_SDL_RENDERER_H_
#endif // ARC_SDL_WINDOW_H_