mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
refactor: add Window interface
This commit is contained in:
parent
cd5c6a889c
commit
9694a59649
31 changed files with 859 additions and 923 deletions
|
|
@ -41,7 +41,7 @@ class CameraControl {
|
|||
void switchCamera();
|
||||
public:
|
||||
CameraControl(Player& player, const CameraSettings& settings);
|
||||
void updateMouse(PlayerInput& input);
|
||||
void updateMouse(PlayerInput& input, int windowHeight);
|
||||
void update(PlayerInput input, float delta, const Chunks& chunks);
|
||||
void refreshPosition();
|
||||
void refreshRotation();
|
||||
|
|
@ -84,6 +84,8 @@ public:
|
|||
/// @param delta delta time
|
||||
/// @param inputEvents nullable window inputs
|
||||
/// @param pause is game paused
|
||||
void postUpdate(float delta, const Input* inputEvents, bool pause);
|
||||
void postUpdate(
|
||||
float delta, int windowHeight, const Input* inputEvents, bool pause
|
||||
);
|
||||
Player* getPlayer();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue