Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
texturedocument.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
13
//------------------------------------------------------------------------------
14
#if WITH_NEBULA_EDITOR
15
#include "editorassets/assetdocument.h"
16
#include "
dynui/imguicontext.h
"
17
#include "
ids/id.h
"
18
#include "
resources/resourceid.h
"
19
20
namespace
GraphicsFeature
21
{
22
23
class
TextureDocument
final :
public
Editor::AssetDocument
24
{
25
__DeclareClass
(
TextureDocument
)
26
public
:
27
TextureDocument
();
28
virtual
~TextureDocument
();
29
31
void
Draw()
override
;
32
34
static
void
OpenAsset(
const
IO::Path
& asset);
35
36
protected
:
37
bool
OnOpen()
override
;
38
void
OnClose()
override
;
39
40
private
:
42
void
Loaded(Resources::ResourceId
id
);
43
44
Resources::ResourceId resource;
46
Dynui::ImguiTextureId
texture;
47
Ids::Id32
textureId;
48
bool
hasTextureId;
49
float
exposureStops;
51
int
layer;
52
int
mip;
53
};
54
55
}
// namespace GraphicsFeature
56
#endif
// WITH_NEBULA_EDITOR
57
//------------------------------------------------------------------------------
TextureDocument
A texture open in the asset editor.
IO::Path
A path is an abstraction around file paths.
Definition
path.h:26
id.h
imguicontext.h
GraphicsFeature
Definition
graphicsfeatureunit.cc:66
Ids::Id32
uint32_t Id32
Definition
id.h:138
resourceid.h
__DeclareClass
#define __DeclareClass(type)
Dynui::ImguiTextureId
Definition
imguicontext.h:54
code
addons
graphicsfeature
editor
assets
texturedocument.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.