Cogs.Core
Extensions
Editor
Source
MaterialEditor.h
1
#pragma once
2
3
#include "EditorState.h"
4
#include "Editor.h"
5
6
namespace
Cogs::Core
7
{
8
class
Context;
9
class
Editor;
10
11
class
MaterialEditor
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
}
Cogs::Core::Context
A Context instance contains all the services, systems and runtime components needed to use Cogs.
Definition:
Context.h:83
Cogs::Core::Editor
Definition:
Editor.h:77
Cogs::Core::MaterialEditor
Definition:
MaterialEditor.h:12
Cogs::Core
Contains the Engine, Renderer, resource managers and other systems needed to run Cogs....
Definition:
ComponentFunctions.h:10
Cogs::Core::FieldInfo
Definition:
FieldCommands.h:8
Cogs::Core::ResourceHandle_t< MaterialInstance >
Generated by
1.9.6