mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-02-25 14:29:03 -06:00
Merge branch 'develop' of github.com:OpenSpace/OpenSpace into feature/parallelconnection
Conflicts: include/openspace/engine/openspaceengine.h src/engine/openspaceengine.cpp src/interaction/interactionhandler.cpp src/network/parallelconnection.cpp src/scripting/scriptengine.cpp
This commit is contained in:
@@ -76,12 +76,8 @@ public:
|
||||
void unlockControls();
|
||||
|
||||
//void update(double deltaTime);
|
||||
|
||||
void preSynchronization(double deltaTime);
|
||||
void postSynchronizationPreDraw();
|
||||
|
||||
void serialize(SyncBuffer* syncBuffer);
|
||||
void deserialize(SyncBuffer* syncBuffer);
|
||||
void updateCamera();
|
||||
void updateInputStates(double timeSinceLastUpdate);
|
||||
|
||||
// Accessors
|
||||
ghoul::Dictionary getCameraStateDictionary();
|
||||
|
||||
@@ -97,9 +97,6 @@ public:
|
||||
virtual void updateMouseStatesFromInput(const InputState& inputState, double deltaTime) = 0;
|
||||
virtual void updateCameraStateFromMouseStates(Camera& camera) = 0;
|
||||
|
||||
virtual void serialize(SyncBuffer* syncBuffer) = 0;
|
||||
virtual void deserialize(SyncBuffer* syncBuffer) = 0;
|
||||
|
||||
protected:
|
||||
/**
|
||||
Inner class that acts as a smoothing filter to a variable. The filter has a step
|
||||
@@ -170,10 +167,6 @@ public:
|
||||
virtual void updateMouseStatesFromInput(const InputState& inputState, double deltaTime);
|
||||
virtual void updateCameraStateFromMouseStates(Camera& camera);
|
||||
|
||||
// Need implementation
|
||||
|
||||
virtual void serialize(SyncBuffer* syncBuffer) {};
|
||||
virtual void deserialize(SyncBuffer* syncBuffer) {};
|
||||
private:
|
||||
std::vector<network::datamessagestructures::CameraKeyframe> _keyframes;
|
||||
double _currentKeyframeTime;
|
||||
@@ -187,9 +180,9 @@ public:
|
||||
class MouseStates
|
||||
{
|
||||
public:
|
||||
/*!
|
||||
/**
|
||||
\param sensitivity
|
||||
\param velocityScalefactor can be set to 60 to remove the inertia of the
|
||||
\param velocityScaleFactor can be set to 60 to remove the inertia of the
|
||||
interaction. Lower value will make it harder to move the camera.
|
||||
*/
|
||||
MouseStates(double sensitivity, double velocityScaleFactor);
|
||||
@@ -206,11 +199,6 @@ public:
|
||||
glm::dvec2 synchedLocalRollMouseVelocity();
|
||||
glm::dvec2 synchedGlobalRollMouseVelocity();
|
||||
|
||||
void preSynchronization();
|
||||
void postSynchronizationPreDraw();
|
||||
|
||||
void serialize(SyncBuffer* syncBuffer);
|
||||
void deserialize(SyncBuffer* syncBuffer);
|
||||
private:
|
||||
double _sensitivity;
|
||||
|
||||
@@ -219,19 +207,6 @@ public:
|
||||
MouseState _truckMovementMouseState;
|
||||
MouseState _localRollMouseState;
|
||||
MouseState _globalRollMouseState;
|
||||
|
||||
// MouseStates have synched variables
|
||||
glm::dvec2 _sharedGlobalRotationMouseVelocity;
|
||||
glm::dvec2 _sharedLocalRotationMouseVelocity;
|
||||
glm::dvec2 _sharedTruckMovementMouseVelocity;
|
||||
glm::dvec2 _sharedLocalRollMouseVelocity;
|
||||
glm::dvec2 _sharedGlobalRollMouseVelocity;
|
||||
|
||||
glm::dvec2 _synchedGlobalRotationMouseVelocity;
|
||||
glm::dvec2 _synchedLocalRotationMouseVelocity;
|
||||
glm::dvec2 _synchedTruckMovementMouseVelocity;
|
||||
glm::dvec2 _synchedLocalRollMouseVelocity;
|
||||
glm::dvec2 _synchedGlobalRollMouseVelocity;
|
||||
};
|
||||
|
||||
OrbitalInteractionMode(std::shared_ptr<MouseStates> mouseStates);
|
||||
@@ -242,9 +217,6 @@ public:
|
||||
virtual void updateMouseStatesFromInput(const InputState& inputState, double deltaTime);
|
||||
virtual void updateCameraStateFromMouseStates(Camera& camera);
|
||||
|
||||
virtual void serialize(SyncBuffer* syncBuffer);
|
||||
virtual void deserialize(SyncBuffer* syncBuffer);
|
||||
|
||||
protected:
|
||||
//void updateCameraStateFromMouseStates(Camera& camera);
|
||||
std::shared_ptr<MouseStates> _mouseStates;
|
||||
|
||||
Reference in New Issue
Block a user