FPLBase
An open source project by FPL.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
flatbuffer_utils.h File Reference

Contains helper functions for loading the structs in common.fbs from Flatbuffer files. More...

#include "fplbase/config.h"
#include "common_generated.h"
#include "mathfu/constants.h"
#include "mathfu/glsl_mappings.h"

Go to the source code of this file.

Detailed Description

Contains helper functions for loading the structs in common.fbs from Flatbuffer files.

Namespaces

 fplbase
 Namespace for FPLBase library.
 

Functions

mathfu::vec2 fplbase::LoadVec2 (const Vec2 *v)
 Converts a Vec2. More...
 
mathfu::vec3 fplbase::LoadVec3 (const Vec3 *v)
 Converts a Vec3. More...
 
mathfu::vec4 fplbase::LoadVec4 (const Vec4 *v)
 Converts a Vec4. More...
 
mathfu::vec2i fplbase::LoadVec2i (const Vec2i *v)
 Converts a Vec2i. More...
 
mathfu::vec3i fplbase::LoadVec3i (const Vec3i *v)
 Converts a Vec3i. More...
 
mathfu::vec4i fplbase::LoadVec4i (const Vec4i *v)
 Converts a Vec4i. More...
 
mathfu::vec3 fplbase::LoadAxis (Axis axis)
 Converts a Axis to the corresponding vec3. More...
 
mathfu::vec4 fplbase::LoadColorRGBA (const ColorRGBA *c)
 Converts a ColorRGBA to a vec4. More...
 
ColorRGBA fplbase::Vec4ToColorRGBA (const mathfu::vec4 &v)
 Converts a vec4 to a ColorRGBA. More...
 
mathfu::AffineTransform fplbase::LoadAffine (const Mat3x4 *m)
 Converts a Mat3x4 to a mat4. More...