Nebula
Loading...
Searching...
No Matches
ssaocontext.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
9//------------------------------------------------------------------------------
10namespace PostEffects
11{
12
14{
16public:
20 virtual ~SSAOContext();
21
22
24 static void Create();
26 static void Discard();
27
29 static void Setup();
30
33
36private:
37
39 static Graphics::ContextEntityId Alloc() { return Graphics::InvalidContextEntityId; }
42
43};
44
45} // namespace PostEffects
Definition graphicscontext.h:165
Definition ssaocontext.h:14
static Graphics::ContextEntityId Alloc()
implement an empty alloc
Definition ssaocontext.h:39
static void Setup()
setup bloom context
Definition ssaocontext.cc:109
static void Create()
create context
Definition ssaocontext.cc:80
static void Discard()
discard context
Definition ssaocontext.cc:92
static void WindowResized(const CoreGraphics::WindowId id, SizeT width, SizeT height)
Update when window resized.
Definition ssaocontext.cc:333
static void UpdateViewDependentResources(const Ptr< Graphics::View > &view, const Graphics::FrameContext &ctx)
update view resources
Definition ssaocontext.cc:245
virtual ~SSAOContext()
destructor
Definition ssaocontext.cc:72
__DeclarePluginContext()
SSAOContext()
constructor
Definition ssaocontext.cc:65
static void Dealloc(Graphics::ContextEntityId id)
implement a dummy dealloc
Definition ssaocontext.h:41
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
float height
Definition ssaocontext.cc:43
Definition window.h:25
Definition graphicscontext.h:133
Definition graphicsserver.h:31
int SizeT
Definition types.h:49