Nebula
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"
19
20namespace GraphicsFeature
21{
22
23class TextureDocument final : public Editor::AssetDocument
24{
26public:
28 virtual ~TextureDocument();
29
31 void Draw() override;
32
34 static void OpenAsset(const IO::Path& asset);
35
36protected:
37 bool OnOpen() override;
38 void OnClose() override;
39
40private:
42 void Loaded(Resources::ResourceId id);
43
44 Resources::ResourceId resource;
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//------------------------------------------------------------------------------
A texture open in the asset editor.
A path is an abstraction around file paths.
Definition path.h:26
Definition graphicsfeatureunit.cc:66
uint32_t Id32
Definition id.h:138
#define __DeclareClass(type)
Definition imguicontext.h:54