3#include "EditorCommand.h"
7#include "Services/TaskManager.h"
8#include "CommandHelpers.h"
17 void apply()
override;
28 std::vector<MeshHandle> originalMeshes;
41 virtual bool issueTask() = 0;
45 uint32_t primitiveMask;
48 std::atomic<bool> running =
false;
49 std::atomic<bool> cancel =
false;
53 std::vector<MeshHandle> originalMeshes;
63 float featureAngle = 0.6f;
64 float protrusionAngle = 0.6f;
67 void apply()
override;
69 bool issueTask()
override;
76 float epsilon = std::numeric_limits<float>::epsilon();
77 bool keepNormals =
true;
78 bool keepTexCoords =
true;
79 bool keepTangents =
true;
82 bool hasNormals =
true;
83 bool hasTexCoords =
true;
84 bool hasTangents =
true;
87 void apply()
override;
89 bool issueTask()
override;
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
void beginModal() override
Called when the command is initiated.
bool continueModal() override
Shall return true while the GUI should still be shown. False when.
void showGui() override
Display custom ImGUI.
void showGui() override
Display custom ImGUI.
void apply() override
Run the command.
Abstract base class for all editor commands showing GUI in interactive mode.
bool continueModal() override
Shall return true while the GUI should still be shown. False when.
void beginModal() override
Called when the command is initiated.
void apply() override
Run the command.
void showGui() override
Display custom ImGUI.
Task id struct used to identify unique Task instances.
void apply() override
Run the command.
void showGui() override
Display custom ImGUI.