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
309
of file
JSONSerializer.hpp
.
310
{
311
constexpr
auto
n = glm_component_count<T>();
312
using
Comp = glm_component_type<T>;
313
auto
arr = nlohmann::json::array();
314
const
Comp*
ptr
= &v[0];
315
for
(
size_t
i = 0; i < n; ++i) {
316
arr.push_back(
ptr
[i]);
317
}
318
return
arr;
319
}
ptr
const uint8_t * ptr
Definition
VertexAccess.cpp:25
References
ptr
.
MayaFlux
IO
JSONSerializer
Generated by
1.9.8