|
Hymn to Beauty
C++ 3D Engine
|
Functions | |
| Value | SaveImVec2 (const ImVec2 &value) |
| Convert an ImVec2 to a JSON node. More... | |
| ImVec2 | LoadImVec2 (const Value &value) |
| Load an ImVec2 from a JSON node. More... | |
| Value | SaveImVec4 (const ImVec4 &value) |
| Convert an ImVec4 to a JSON node. More... | |
| ImVec4 | LoadImVec4 (const Value &value) |
| Load an ImVec4 from a JSON node. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, bool &value, bool defaultValue) |
| Serialize a boolean value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, int32_t &value, int32_t defaultValue) |
| Serialize an integer value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, uint32_t &value, uint32_t defaultValue) |
| Serialize an unsigned integer value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, float &value, float defaultValue) |
| Serialize a float value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, glm::vec2 &value, const glm::vec2 &defaultValue) |
| Serialize a vec2 value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, glm::vec3 &value, const glm::vec3 &defaultValue) |
| Serialize a vec3 value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, glm::vec4 &value, const glm::vec4 &defaultValue) |
| Serialize a vec4 value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, glm::quat &value, const glm::quat &defaultValue) |
| Serialize a quaternion value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, std::string &value, const std::string &defaultValue) |
| Serialize a string value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, TextureAsset *&value) |
| Serialize a TextureAsset value. More... | |
| void | Serialize (Value &node, bool load, const std::string &name, Geometry::Model *&value) |
| Serialize a Model value. More... | |
| ImVec2 Json::LoadImVec2 | ( | const Value & | value | ) |
Load an ImVec2 from a JSON node.
| value | The JSON node to load from. |
| ImVec4 Json::LoadImVec4 | ( | const Value & | value | ) |
Load an ImVec4 from a JSON node.
| value | The JSON node to load from. |
| Json::Value Json::SaveImVec2 | ( | const ImVec2 & | value | ) |
Convert an ImVec2 to a JSON node.
| value | Value to convert. |
| Json::Value Json::SaveImVec4 | ( | const ImVec4 & | value | ) |
Convert an ImVec4 to a JSON node.
| value | Value to convert. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| bool & | value, | ||
| bool | defaultValue | ||
| ) |
Serialize a boolean value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| float & | value, | ||
| float | defaultValue | ||
| ) |
Serialize a float value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| Geometry::Model *& | value | ||
| ) |
Serialize a Model value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| glm::quat & | value, | ||
| const glm::quat & | defaultValue | ||
| ) |
Serialize a quaternion value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| glm::vec2 & | value, | ||
| const glm::vec2 & | defaultValue | ||
| ) |
Serialize a vec2 value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| glm::vec3 & | value, | ||
| const glm::vec3 & | defaultValue | ||
| ) |
Serialize a vec3 value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| glm::vec4 & | value, | ||
| const glm::vec4 & | defaultValue | ||
| ) |
Serialize a vec4 value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| int32_t & | value, | ||
| int32_t | defaultValue | ||
| ) |
Serialize an integer value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| std::string & | value, | ||
| const std::string & | defaultValue | ||
| ) |
Serialize a string value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| TextureAsset *& | value | ||
| ) |
Serialize a TextureAsset value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| void Json::Serialize | ( | Value & | node, |
| bool | load, | ||
| const std::string & | name, | ||
| uint32_t & | value, | ||
| uint32_t | defaultValue | ||
| ) |
Serialize an unsigned integer value.
| node | Json node to save to/load from. |
| load | Whether to load (otherwise saves). |
| name | The name to store the value under. |
| value | The value to save/load. |
| defaultValue | Default value if loading and node does not exist. |