Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
bloomcontext.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
9
//------------------------------------------------------------------------------
10
#include "
graphics/graphicscontext.h
"
11
namespace
PostEffects
12
{
13
14
class
BloomContext
:
public
Graphics::GraphicsContext
15
{
16
__DeclarePluginContext
();
17
public
:
19
BloomContext
();
21
virtual
~BloomContext
();
22
24
static
void
Create
();
26
static
void
Discard
();
27
29
static
void
Setup
();
30
32
static
void
Resize
(
const
uint
framescriptHash,
SizeT
width
,
SizeT
height
);
33
34
private
:
35
37
static
Graphics::ContextEntityId
Alloc
() {
return
Graphics::InvalidContextEntityId; }
39
static
void
Dealloc
(
Graphics::ContextEntityId
id
) {};
40
41
};
42
43
}
// namespace PostEffects
Graphics::GraphicsContext
Definition
graphicscontext.h:175
PostEffects::BloomContext::Alloc
static Graphics::ContextEntityId Alloc()
implement an empty alloc
Definition
bloomcontext.h:37
PostEffects::BloomContext::__DeclarePluginContext
__DeclarePluginContext()
PostEffects::BloomContext::Discard
static void Discard()
discard context
Definition
bloomcontext.cc:252
PostEffects::BloomContext::~BloomContext
virtual ~BloomContext()
destructor
Definition
bloomcontext.cc:48
PostEffects::BloomContext::Setup
static void Setup()
setup bloom context
Definition
bloomcontext.cc:56
PostEffects::BloomContext::Resize
static void Resize(const uint framescriptHash, SizeT width, SizeT height)
Handle window resize.
Definition
bloomcontext.cc:157
PostEffects::BloomContext::Dealloc
static void Dealloc(Graphics::ContextEntityId id)
implement a dummy dealloc
Definition
bloomcontext.h:39
PostEffects::BloomContext::BloomContext
BloomContext()
constructor
Definition
bloomcontext.cc:41
PostEffects::BloomContext::Create
static void Create()
create context
Definition
bloomcontext.cc:239
graphicscontext.h
PostEffects
Bloom post effect.
Definition
bloomcontext.cc:19
PostEffects::width
float width
Definition
ssaocontext.cc:39
PostEffects::height
float height
Definition
ssaocontext.cc:39
Graphics::ContextEntityId
Definition
graphicscontext.h:143
SizeT
int SizeT
Definition
types.h:42
uint
unsigned int uint
Definition
types.h:33
code
render
posteffects
bloomcontext.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.