Nebula
Loading...
Searching...
No Matches
nebula_flat.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
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}
Simple transform using position, quaternion, and scale.
Definition transform.h:18
Flatbuffer to Nebula type conversion functions.
Definition flatbufferinterface.h:22
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
A 4x4 single point precision float matrix.
Definition mat4.h:49
A quaternion is usually used to represent an orientation in 3D space.
Definition quat.h:30
A 2-component float vector class.
Definition vec2.h:21
A 3D vector.
Definition vec3.h:40
A 4D vector.
Definition vec4.h:24