Nebula
Loading...
Searching...
No Matches
nebula_flat.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9
10#include "math/vec2.h"
11#include "math/vec3.h"
12#include "math/vec4.h"
13#include "math/mat4.h"
14#include "math/quat.h"
15#include "math/transform.h"
16#include "flat/foundation/math.h"
17
18namespace Flat
19{
20struct Vec2;
21struct Vec3;
22struct Vec4;
23struct Mat4;
24struct Quat;
25}
26
27namespace flatbuffers
28{
30Flat::Quat Pack(const Math::quat& v);
32Math::quat UnPack(const Flat::Quat& v);
34Flat::Vec4 Pack(const Math::vec4& v);
36Math::vec4 UnPack(const Flat::Vec4& v);
38Flat::Vec3 Pack(const Math::vec3& v);
40Math::vec3 UnPack(const Flat::Vec3& v);
42Flat::Vec2 Pack(const Math::vec2& v);
44Math::vec2 UnPack(const Flat::Vec2& v);
46Flat::Mat4 Pack(const Math::mat4& v);
48Math::mat4 UnPack(const Flat::Mat4& v);
50Flat::Transform Pack(const Math::transform& v);
52Math::transform UnPack(const Flat::Transform& v);
53}
Flatbuffer to Nebula type conversion functions.
Definition flatbufferinterface.h:23
Definition nebula_flat.cc:10
Math::mat4 UnPack(const Flat::Mat4 &v)
Definition nebula_flat.cc:24
Flat::Mat4 Pack(const Math::mat4 &v)
Definition nebula_flat.cc:14