Cogs.Core
Extensions
Editor
Source
Commands
SparseBuildOctreeCommand.h
1
#pragma once
2
3
#include "EditorCommand.h"
4
5
#include "SparseBuildOctree.h"
6
14
namespace
Cogs::Core
15
{
16
struct
SparseBuildOctreeCommand
:
public
PostCommand
17
{
18
SparseBuildOctreeCommand
(
EditorState
* state) :
PostCommand
(state) {}
19
20
void
apply
()
override
;
21
void
undo()
override
;
22
23
void
applyPost()
override
;
24
25
void
buildOctree(
SparseOctree::OctreeInfo
& info);
26
27
void
exportAsset(
Context
* context,
SparseOctree::Octree
& octree);
28
};
29
}
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Definition:
ComponentFunctions.h:10
Cogs::Core::EditorState
Definition:
EditorState.h:76
Cogs::Core::PostCommand
Abstract base class for all editor batch Post commands.
Definition:
EditorCommand.h:28
Cogs::Core::SparseBuildOctreeCommand
Definition:
SparseBuildOctreeCommand.h:17
Cogs::Core::SparseBuildOctreeCommand::apply
void apply() override
Run the command.
Definition:
SparseBuildOctreeCommand.cpp:868
Cogs::Core::SparseOctree::OctreeInfo
Definition:
SparseBuildOctree.h:137
Cogs::Core::SparseOctree::Octree
Definition:
SparseBuildOctree.h:237
Generated by
1.9.6