3#include "system/Config.hpp"
4#include "graphics/GPUTypes.hpp"
26 static std::string
encode(
bool b);
40 static std::vector<std::string>
encode(
const glm::vec2 & v);
54 static std::vector<std::string>
encode(
const glm::vec3 & v);
68 static std::vector<std::string>
encode(
const glm::vec4 & v);
85 static std::vector<KeyValues>
encode(
const glm::mat4 & transfo);
110 static std::vector<KeyValues>
decode(
const std::string & codableFile);
118 static std::string
encode(
const std::vector<KeyValues> & params);
146 static std::string
encode(
const std::vector<KeyValues> & params,
Prefix prefix, uint level);
Provides helpers for serialization/deserialization of basic types.
Definition: Codable.hpp:12
static glm::vec2 decodeVec2(const KeyValues ¶m, unsigned int position=0)
Definition: Codable.cpp:63
static std::pair< std::string, Layout > decodeTexture(const KeyValues ¶m)
Definition: Codable.cpp:143
Prefix
Prefix type/.
Definition: Codable.hpp:134
static std::string encode(bool b)
Definition: Codable.cpp:24
static glm::vec3 decodeVec3(const KeyValues ¶m, unsigned int position=0)
Definition: Codable.cpp:28
static void unknown(const KeyValues ¶ms)
Definition: Codable.cpp:320
static bool decodeBool(const KeyValues ¶m, unsigned int position=0)
Definition: Codable.cpp:9
static std::vector< KeyValues > decode(const std::string &codableFile)
Definition: Codable.cpp:185
static glm::mat4 decodeTransformation(const std::vector< KeyValues > ¶ms)
Definition: Codable.cpp:79
static glm::vec4 decodeVec4(const KeyValues ¶m, unsigned int position=0)
Definition: Codable.cpp:45
Represents a texture containing one or more images, stored on the CPU and/or GPU.
Definition: Texture.hpp:12
Represent a key-values tuple.
Definition: Config.hpp:9