removed pointless pointers in rectange, reset background clear color, fixed entity, and added some state functions

This commit is contained in:
herbglitch 2025-03-17 02:31:23 -06:00
parent dd1f3ca3e0
commit bd7e3212da
12 changed files with 161 additions and 86 deletions

View file

@ -12,15 +12,17 @@ extern "C" {
#include "arc/input/keyboard.h"
#include "arc/math/point.h"
#include "arc/std/bool.h"
#include "arc/std/entity.h"
#include "arc/std/handler.h"
typedef struct ARC_EngineData {
ARC_Window *window;
ARC_Renderer *renderer;
ARC_Handler *state;
ARC_Input *input;
ARC_Mouse *mouse;
ARC_Keyboard *keyboard;
ARC_Window *window;
ARC_Renderer *renderer;
ARC_Handler *state;
ARC_Input *input;
ARC_Mouse *mouse;
ARC_Keyboard *keyboard;
ARC_EntitySystem *entitySystem;
double dt;
ARC_Bool running;
@ -34,7 +36,7 @@ typedef struct ARC_EngineData {
* @param cleanFn the state cleanup function
* @param windowSIze the size of window to create passed as an ARC_Point
*/
void ARC_EngineData_Create(ARC_EngineData **data, ARC_Handler_CleanDataFn cleanFn, ARC_Point windowSize);
void ARC_EngineData_Create(ARC_EngineData **data, ARC_Point windowSize);
/**
* @breif destroys an ARC_EngineData type