Nebula
Loading...
Searching...
No Matches
histogramcontext.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
11namespace PostEffects
12{
13
15{
17public:
21 virtual ~HistogramContext();
22
24 static void Create();
26 static void Discard();
27
29 static void SetWindow(const Math::float2 offset, Math::float2 size, int mip);
30
32 static void Setup();
33
35 static void UpdateViewResources(const Ptr<Graphics::View>& view, const Graphics::FrameContext& ctx);
36
38 static void UpdateConstants();
39
41 static void WindowResized(const CoreGraphics::WindowId windowId, SizeT width, SizeT height);
42
43private:
44
46 static Graphics::ContextEntityId Alloc() { return Graphics::InvalidContextEntityId; }
49
50};
51
52} // namespace PostEffects
Definition graphicscontext.h:165
Definition histogramcontext.h:15
virtual ~HistogramContext()
destructor
Definition histogramcontext.cc:57
static void UpdateConstants()
update constants
Definition histogramcontext.cc:268
static void Create()
create context
Definition histogramcontext.cc:65
static void Setup()
setup bloom context
Definition histogramcontext.cc:152
static Graphics::ContextEntityId Alloc()
implement an empty alloc
Definition histogramcontext.h:46
static void UpdateViewResources(const Ptr< Graphics::View > &view, const Graphics::FrameContext &ctx)
update view resources
Definition histogramcontext.cc:229
static void WindowResized(const CoreGraphics::WindowId windowId, SizeT width, SizeT height)
Handle window resize.
Definition histogramcontext.cc:289
static void Discard()
discard context
Definition histogramcontext.cc:127
static void Dealloc(Graphics::ContextEntityId id)
implement a dummy dealloc
Definition histogramcontext.h:48
HistogramContext()
constructor
Definition histogramcontext.cc:50
static void SetWindow(const Math::float2 offset, Math::float2 size, int mip)
set histogram window in relative coordinates and mip of source texture
Definition histogramcontext.cc:135
__DeclarePluginContext()
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Bloom post effect.
Definition bloomcontext.cc:16
float width
Definition ssaocontext.cc:43
int mip
Definition histogramcontext.cc:37
Math::float2 size
Definition histogramcontext.cc:36
Math::float2 offset
Definition histogramcontext.cc:36
float height
Definition ssaocontext.cc:43
Definition window.h:25
Definition graphicscontext.h:133
Definition graphicsserver.h:31
Definition scalar.h:58
int SizeT
Definition types.h:49