Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
YAML::convert< glm::vec4 > Struct Reference

Static Public Member Functions

static Node encode (const glm::vec4 &rhs)
static bool decode (const Node &node, glm::vec4 &rhs)
static Node encode (const glm::vec4 &rhs)
static bool decode (const Node &node, glm::vec4 &rhs)

Member Function Documentation

◆ decode() [1/2]

bool YAML::convert< glm::vec4 >::decode ( const Node & node,
glm::vec4 & rhs )
inlinestatic
77 {
78 if (!node.IsSequence() || node.size() != 4)
79 return false;
80
81 rhs.x = node[0].as<float>();
82 rhs.y = node[1].as<float>();
83 rhs.z = node[2].as<float>();
84 rhs.w = node[3].as<float>();
85 return true;
86 }

◆ decode() [2/2]

bool YAML::convert< glm::vec4 >::decode ( const Node & node,
glm::vec4 & rhs )
inlinestatic
77 {
78 if (!node.IsSequence() || node.size() != 4)
79 return false;
80
81 rhs.x = node[0].as<float>();
82 rhs.y = node[1].as<float>();
83 rhs.z = node[2].as<float>();
84 rhs.w = node[3].as<float>();
85 return true;
86 }

◆ encode() [1/2]

Node YAML::convert< glm::vec4 >::encode ( const glm::vec4 & rhs)
inlinestatic
66 {
67 Node node;
68 node.push_back(rhs.x);
69 node.push_back(rhs.y);
70 node.push_back(rhs.z);
71 node.push_back(rhs.w);
72 node.SetStyle(EmitterStyle::Flow);
73 return node;
74 }

◆ encode() [2/2]

Node YAML::convert< glm::vec4 >::encode ( const glm::vec4 & rhs)
inlinestatic
66 {
67 Node node;
68 node.push_back(rhs.x);
69 node.push_back(rhs.y);
70 node.push_back(rhs.z);
71 node.push_back(rhs.w);
72 node.SetStyle(EmitterStyle::Flow);
73 return node;
74 }

The documentation for this struct was generated from the following file: