Scene Lab
An open source project by FPL.
 All Classes Namespaces Files Functions Pages
flatbuffer_editor.h File Reference

An on-screen representation of a Flatbuffer, which can be edited by the user. More...

#include <set>
#include <string>
#include <unordered_map>
#include <vector>
#include "flatbuffer_editor_config_generated.h"
#include "flatbuffers/flatbuffers.h"
#include "flatbuffers/reflection.h"
#include "flatbuffers/util.h"
#include "flatui/flatui.h"
#include "fplbase/fpl_common.h"
#include "mathfu/glsl_mappings.h"

Go to the source code of this file.

Detailed Description

An on-screen representation of a Flatbuffer, which can be edited by the user.

Instantiate FlatbufferEditor with a Flatbuffer you'd like it to edit. It will create a copy of that Flatbuffer to manipulate, and you can get the modified Flatbuffer data back out whenever you want.

When you are ready to get the Flatbuffer data from the editor, you can call one of the GetFlatbufferCopy() functions, which will return the data in different formats. These functions will copy the data out of our internal buffer using reflection (which also has the side effect of normalizing the Flatbuffer if we have made changes to it).

Classes

class  scene_lab::FlatbufferEditor
 

Namespaces

 scene_lab
 Utility functions that might be useful if you are using Scene Lab.