Cogs.Core
MaterialEditor.h
1#pragma once
2
3#include "EditorState.h"
4#include "Editor.h"
5
6namespace Cogs::Core
7{
8 class Context;
9 class Editor;
10
12 {
13 public:
14 MaterialEditor(Context * context, Editor * editor) : context(context), editor(editor) {}
15
16 bool showMaterialInstance(FieldInfo & fieldInfo, MaterialInstanceHandle & materialInstanceHandle);
17
18 private:
19 void showMaterialProperties(MaterialInstanceHandle& materialInstanceHandle);
20
21 private:
22 Context * context;
23 Editor * editor;
24 };
25}
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition: Context.h:83
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....