Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
resourcespanel.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
14
//------------------------------------------------------------------------------
15
#if WITH_NEBULA_EDITOR
16
#include "neweditor/core/editorpanel.h"
17
#include "
coregraphics/texture.h
"
18
#include "
ids/id.h
"
19
20
namespace
GraphicsFeature
21
{
22
23
class
ResourcesPanel
final :
public
Editor::EditorPanel
24
{
25
__DeclareClass
(
ResourcesPanel
)
26
public
:
27
ResourcesPanel
();
28
virtual
~ResourcesPanel
();
29
30
void
Draw()
override
;
31
32
protected
:
33
bool
OnSetup()
override
;
34
35
private
:
37
void
DrawList();
39
void
DrawPreview();
40
42
void
CommandResources(
const
Util::Array<Util::String>
& args);
43
44
char
filter[128];
45
CoreGraphics::TextureId
selected;
46
Ids::Id32
previewId;
47
48
int
mip;
49
int
layer;
50
bool
red, green, blue, alpha;
51
bool
useAlpha;
52
bool
useRange;
53
float
rangeMin, rangeMax, rangeLimit;
54
bool
pointFilter;
55
float
zoom;
56
};
57
58
}
// namespace GraphicsFeature
59
#endif
// WITH_NEBULA_EDITOR
60
//------------------------------------------------------------------------------
ResourcesPanel
The GPU textures the renderer has made, loaded ones and render targets alike, with their size,...
Util::Array
Nebula's dynamic array class.
Definition
array.h:61
id.h
GraphicsFeature
Definition
graphicsfeatureunit.cc:66
Ids::Id32
uint32_t Id32
Definition
id.h:138
__DeclareClass
#define __DeclareClass(type)
CoreGraphics::TextureId
texture type
Definition
texture.h:25
texture.h
code
addons
graphicsfeature
editor
resourcespanel.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.