stuff
This commit is contained in:
parent
1006b231f0
commit
0c0cfef186
28 changed files with 220 additions and 331 deletions
27
game/inc/suic_game_client.h
Normal file
27
game/inc/suic_game_client.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#pragma once
|
||||
#include "suic_math.h"
|
||||
#include "suic_terrain.h"
|
||||
#include "suic_lighting.h"
|
||||
#include "suic_net.h"
|
||||
#include "suic_ui.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
/**
|
||||
* High-level game client API.
|
||||
* Ties together terrain, networking, lighting, and rendering.
|
||||
*/
|
||||
|
||||
/* Game lifecycle */
|
||||
void suic_game_init(const char* username, const char* serverIp, int port);
|
||||
void suic_game_update(float dt);
|
||||
void suic_game_render(void);
|
||||
void suic_game_shutdown(void);
|
||||
|
||||
/* Camera state */
|
||||
SuicVec3 suic_game_get_camera_pos(void);
|
||||
float suic_game_get_yaw(void);
|
||||
float suic_game_get_pitch(void);
|
||||
bool suic_game_is_scoped(void);
|
||||
|
||||
/* Input state */
|
||||
void suic_game_handle_input(float dt);
|
||||
Loading…
Add table
Add a link
Reference in a new issue