basic sdl init graphics and engine implementaiton
This commit is contained in:
parent
db1adbb838
commit
685364929b
18 changed files with 257 additions and 7 deletions
22
include/arc/graphics/sdl/renderer.h
Normal file
22
include/arc/graphics/sdl/renderer.h
Normal 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_
|
||||
25
include/arc/graphics/sdl/window.h
Normal file
25
include/arc/graphics/sdl/window.h
Normal 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_
|
||||
Loading…
Add table
Add a link
Reference in a new issue