JacksEscape/App.h

33 lines
477 B
C
Raw Normal View History

2024-03-01 17:09:24 +08:00
#pragma once
#include "Entity.h"
#include "Physics_Component.h"
#include "Player_Component.h"
#include "Input.h"
2024-03-04 13:41:01 +08:00
#include "Types.h"
2024-03-01 17:09:24 +08:00
2024-03-04 15:05:21 +08:00
#ifdef __cplusplus
extern "C" {
#endif
2024-03-01 17:09:24 +08:00
typedef struct _App {
System_Physics *physics;
System_Player *player;
System_Input *input;
System_Entity *entity;
2024-03-04 15:05:21 +08:00
bool wantQuit;
2024-03-01 17:09:24 +08:00
} App;
2024-03-04 13:41:01 +08:00
App *app_NewApp();
void app_DeleteApp(App *app);
void app_Advance(App *app, Duration deltaTime);
2024-03-04 16:13:43 +08:00
void app_Render(App *app);
2024-03-04 15:05:21 +08:00
#ifdef __cplusplus
}
#endif