add (very rough) gizmo, restructure Dart package into library, add EntityListWidget
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
#include <gltfio/FilamentInstance.h>
|
||||
#include <gltfio/ResourceLoader.h>
|
||||
|
||||
#include <filament/IndexBuffer.h>
|
||||
#include <filament/InstanceBuffer.h>
|
||||
|
||||
#include "material/gizmo.h"
|
||||
#include "utils/NameComponentManager.h"
|
||||
#include "ResourceBuffer.hpp"
|
||||
#include "components/CollisionComponentManager.hpp"
|
||||
@@ -141,6 +145,19 @@ namespace flutter_filament
|
||||
/// @param entityId
|
||||
void getInstances(EntityId entityId, EntityId* out);
|
||||
|
||||
///
|
||||
/// Sets the draw priority for the given entity. See RenderableManager.h for more details.
|
||||
///
|
||||
void setPriority(EntityId entity, int priority);
|
||||
|
||||
|
||||
/// @brief returns the gizmo entity, used to manipulate the global transform for entities
|
||||
/// @param out a pointer to an array of three EntityId {x, y, z}
|
||||
/// @return
|
||||
///
|
||||
void getGizmo(EntityId* out);
|
||||
|
||||
|
||||
friend class FilamentViewer;
|
||||
|
||||
|
||||
@@ -154,6 +171,7 @@ namespace flutter_filament
|
||||
gltfio::TextureProvider *_stbDecoder = nullptr;
|
||||
gltfio::TextureProvider *_ktxDecoder = nullptr;
|
||||
std::mutex _mutex;
|
||||
Material* _gizmoMaterial;
|
||||
|
||||
utils::NameComponentManager* _ncm;
|
||||
|
||||
@@ -173,5 +191,10 @@ namespace flutter_filament
|
||||
const gltfio::FilamentInstance* instance,
|
||||
const char *entityName);
|
||||
|
||||
EntityId addGizmo();
|
||||
utils::Entity _gizmoX;
|
||||
utils::Entity _gizmoY;
|
||||
utils::Entity _gizmoZ;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user