Cogs.Core
ExportGltfCommand.h
1#pragma once
2
3#include "EditorCommand.h"
4#include "Resources/Resources.h"
5namespace Cogs::Core
6{
7 class COGSCORE_EDITOR_API ExportGltfCommand : public EditorCommand
8 {
9 public:
10 ExportGltfCommand(EditorState* state, const std::string& path, const std::string &name, bool _exportAsGlb, bool exportAll) : EditorCommand(state, state->context), filePath(path), fileName(name), exportAsGlb(_exportAsGlb), exportScene(exportAll) { }
11
12 virtual void apply() override;
13 virtual void undo() override;
14 protected:
15 std::string filePath;
16 std::string fileName;
17 bool exportAsGlb = false;
18 bool exportScene = false;
19 };
20}
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Base class for Cogs Editor commands.
Definition: EditorCommand.h:19