First test of actual remote controlling

This commit is contained in:
Joakim Kilby
2015-06-17 13:10:19 +02:00
parent 4e4cf4cd6a
commit 8297f2e683
4 changed files with 22 additions and 22 deletions

View File

@@ -59,11 +59,11 @@ namespace openspace{
namespace network{
struct Keyframe{
glm::quat _viewRotationQuat;
psc _position;
double _timeStamp;
struct Keyframe{
glm::quat _viewRotationQuat;
psc _position;
double _timeStamp;
void serialize(std::vector<char> &buffer){
//add position
buffer.insert(buffer.end(), reinterpret_cast<char*>(&_position), reinterpret_cast<char*>(&_position) + sizeof(_position));
@@ -94,7 +94,7 @@ namespace openspace{
memcpy(&_timeStamp, buffer.data() + offset, size);
offset += size;
};
};
};
class OSParallelConnection : public properties::PropertyOwner {
public: