27 lines
661 B
C
27 lines
661 B
C
#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);
|