System info & network

This commit is contained in:
2023-09-26 19:40:16 +02:00
commit 504ba77654
89 changed files with 39577 additions and 0 deletions

56
code/enginestate.h Normal file
View File

@@ -0,0 +1,56 @@
#ifndef _PIUMA_ENGINESTATE_H_
#define _PIUMA_ENGINESTATE_H_
#include "lib/types.h"
#include "lib/math.h"
#include "render/render.h"
#include "audio.h"
#include "camera.h"
#include "assets.h"
#include "physics/physics.h"
enum input_target
{
INPUT_TARGET_PLAYER,
INPUT_TARGET_CAMERA,
INPUT_TARGET_EDITOR
};
struct es_input
{
f32 mouse_sensitivity;
f32 movement_sensitivity;
bool init;
enum input_target target;
v2s player_movement;
v3 camera_rotation;
v3 camera_movement;
};
struct engine_state
{
es_input input;
audio_player audio;
asset_manager am;
f64 time;
f64 delta_t;
f32 gui_scaling;
phy_world *world;
};
extern engine_state engine;
bool enginestate_init();
void enginestate_deinit();
#endif