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
27
include/arc/engine/engine.h
Normal file
27
include/arc/engine/engine.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef ARC_ENGINE_H_
|
||||
#define ARC_ENGINE_H_
|
||||
|
||||
#include "arc/graphics/window.h"
|
||||
#include "arc/graphics/renderer.h"
|
||||
|
||||
typedef struct ARC_EngineData {
|
||||
ARC_Window *window;
|
||||
ARC_Renderer *renderer;
|
||||
|
||||
} ARC_EngineData;
|
||||
|
||||
//NOTE: most work below is temp, and will change once I figure out a better way to write this header
|
||||
|
||||
void ARC_EngineData_Create(ARC_EngineData **data);
|
||||
void ARC_EngineData_Destroy(ARC_EngineData *data);
|
||||
|
||||
/**
|
||||
* @brief runs ARC_Engine
|
||||
*
|
||||
* @param data engine data that will be used
|
||||
* data must be created before this function
|
||||
* and must be destroyed after this function
|
||||
*/
|
||||
void ARC_Engine_Run(ARC_EngineData *data);
|
||||
|
||||
#endif // !ARC_ENGINE_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue