|
Cogs.Core
|
Classes | |
| struct | Options |
| struct | UndoItem |
Public Types | |
| enum struct | Target { WebGL1_Low , WebGL2_Low , WebGL2_Med } |
Public Member Functions | |
| PackMeshCommand (EditorState *state) | |
| void | apply () override |
| Run the command. | |
| void | undo () override |
Public Member Functions inherited from Cogs::Core::EditorCommand | |
| EditorCommand (EditorState *state, Context *context) | |
| virtual void | apply ()=0 |
| Run the command. | |
| virtual void | undo ()=0 |
| virtual void | redo () |
| virtual bool | mergeWith (const EditorCommand *) |
| virtual MeshHandle | applyMesh (MeshHandle) |
| Workaround for having extendable mesh processing available without linking (e.g command -> RR). | |
| virtual void | close () |
| Close command, i.e. prevent merging with another command. | |
| bool | isClosed () const |
| bool | merge (const EditorCommand *command) |
| Merge into this if not this is closed. | |
Static Public Member Functions | |
| static bool | pack (Context *context, std::string &status, glm::mat4 &transform, MeshHandle &src, const Options &options) |
Public Attributes | |
| std::vector< UndoItem > | undoItems |
| Options | packOptions |
Public Attributes inherited from Cogs::Core::EditorCommand | |
| std::vector< ParsedValue > | options |
| Options passed to the command when running in batch mode. | |
| bool | permanentUndo = false |
| True if cannot Redo after Undo. | |
Additional Inherited Members | |
Protected Attributes inherited from Cogs::Core::EditorCommand | |
| EditorState * | state = nullptr |
| Context * | context = nullptr |
Definition at line 7 of file PackMeshCommand.h.
|
strong |
Definition at line 9 of file PackMeshCommand.h.
| Cogs::Core::PackMeshCommand::PackMeshCommand | ( | EditorState * | state | ) |
Definition at line 61 of file PackMeshCommand.cpp.
|
overridevirtual |
Run the command.
In batch scripts this method is called for all type of commands. In interactive mode this method is not called for model commands (subclasses of ModalEditorCommand)
Implements Cogs::Core::EditorCommand.
Definition at line 66 of file PackMeshCommand.cpp.
References Cogs::Core::EntityStore::getEntity(), and Cogs::Core::Context::store.
|
static |
Definition at line 909 of file PackMeshCommand.cpp.
|
overridevirtual |
Implements Cogs::Core::EditorCommand.
Definition at line 76 of file PackMeshCommand.cpp.
| Options Cogs::Core::PackMeshCommand::packOptions |
Definition at line 37 of file PackMeshCommand.h.
| std::vector<UndoItem> Cogs::Core::PackMeshCommand::undoItems |
Definition at line 36 of file PackMeshCommand.h.