3#include "EditorCommand.h"
5#include "Resources/Resources.h"
6#include "Resources/MaterialInstance.h"
7#include "Resources/Mesh.h"
21 material->getProperty(key, &previousValue,
sizeof(T));
22 material->setProperty(key, &value,
sizeof(T));
27 material->setProperty(key, &previousValue,
sizeof(T));
34 if (!setPropertyCommand)
return false;
35 if (material != setPropertyCommand->
material)
return false;
37 value = setPropertyCommand->value;
54 void apply()
override;
69 void apply()
override;
75 std::unordered_map<EntityId, MaterialInstanceHandle> materials;
82 void apply()
override;
88 std::unordered_map<EntityId, MaterialInstanceHandle> materials;
95 void apply()
override;
101 std::unordered_map<EntityId, MeshHandle> meshes;
108 void apply()
override;
109 void undo()
override;
114 std::unordered_map<EntityId, MeshHandle> meshes;
Provides a weakly referenced view over the contents of a string.
std::string to_string() const
String conversion method.
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Base class for Cogs Editor commands.
void apply() override
Run the command.
void apply() override
Run the command.
Material * material
Material resource this MaterialInstance is created from.
void apply() override
Run the command.
void apply() override
Run the command.
bool mergeWith(const EditorCommand *command) override
void apply() override
Run the command.
void apply() override
Run the command.