X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fio%2FTokenStreamReader.hpp;h=8aa2d8b6925f2a27d56ec47b83922e31e238ab34;hb=ab817024b3c02a54a376fa8f60b5046e51128ebb;hp=e2945c40cc2b60880261d7b525f8d852844ae753;hpb=34e833025f0616ab4b86b808d0ce1cc49cecce5d;p=blobs.git diff --git a/src/io/TokenStreamReader.hpp b/src/io/TokenStreamReader.hpp index e2945c4..8aa2d8b 100644 --- a/src/io/TokenStreamReader.hpp +++ b/src/io/TokenStreamReader.hpp @@ -25,6 +25,7 @@ public: void ReadBoolean(bool &); void ReadIdentifier(std::string &); + void ReadNumber(double &); void ReadNumber(float &); void ReadNumber(int &); void ReadNumber(unsigned long &); @@ -34,11 +35,16 @@ public: void ReadVec(glm::vec3 &); void ReadVec(glm::vec4 &); + void ReadVec(glm::dvec2 &); + void ReadVec(glm::dvec3 &); + void ReadVec(glm::dvec4 &); + void ReadVec(glm::ivec2 &); void ReadVec(glm::ivec3 &); void ReadVec(glm::ivec4 &); void ReadQuat(glm::quat &); + void ReadQuat(glm::dquat &); // the Get* functions advance to the next token // the As* functions try to cast the current token @@ -46,6 +52,8 @@ public: bool GetBool(); bool AsBool() const; + float GetDouble(); + float AsDouble() const; float GetFloat(); float AsFloat() const; int GetInt();