Separated playback keyframe extraction into steps (file read & parse)

This commit is contained in:
GPayne
2019-10-17 18:20:37 -06:00
parent 6a0ddea83a
commit 27ef369338
4 changed files with 120 additions and 69 deletions

View File

@@ -233,6 +233,22 @@ struct CameraKeyframe {
sizeof(_timestamp)
);
};
void read(std::istringstream* iss) {
std::string rotationFollowing;
iss >> _position.x
>> _position.y
>> _position.z
>> _rotation.x
>> _rotation.y
>> _rotation.z
>> _rotation.w
>> _scale
>> rotationFollowing
>> _focusNode;
_followNodeRotation = (rotationFollowing == "F");
};
};
struct TimeKeyframe {