MayaFlux
0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
◆
encode_glm()
template<typename
T
>
requires GlmSerializable<
T
>
static nlohmann::json MayaFlux::IO::JSONSerializer::encode_glm
(
const
T
&
v
)
inline
static
private
Definition at line
288
of file
JSONSerializer.hpp
.
289
{
290
constexpr
auto
n = glm_component_count<T>();
291
using
Comp = glm_component_type<T>;
292
auto
arr = nlohmann::json::array();
293
const
Comp* ptr = &v[0];
294
for
(
size_t
i = 0; i < n; ++i) {
295
arr.push_back(ptr[i]);
296
}
297
return
arr;
298
}
MayaFlux
IO
JSONSerializer
Generated by
1.9.8