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
#include "
coregraphics/texture.h
"
12
namespace
PostEffects
13
{
14
15
class
BloomContext
:
public
Graphics::GraphicsContext
16
{
17
__DeclarePluginContext
();
18
public
:
20
BloomContext
();
22
virtual
~BloomContext
();
23
25
static
void
Create
();
27
static
void
Discard
();
28
30
static
void
Setup
();
31
34
static
void
SetDirtMask
(
const
CoreGraphics::TextureId
texture);
35
37
static
void
Resize
(
const
uint
framescriptHash,
SizeT
width,
SizeT
height);
38
39
private
:
40
42
static
Graphics::ContextEntityId
Alloc
() {
return
Graphics::InvalidContextEntityId; }
44
static
void
Dealloc
(
Graphics::ContextEntityId
id
) {};
45
46
};
47
48
}
// namespace PostEffects
Graphics::GraphicsContext
Definition
graphicscontext.h:175
PostEffects::BloomContext::Alloc
static Graphics::ContextEntityId Alloc()
implement an empty alloc
Definition
bloomcontext.h:42
PostEffects::BloomContext::__DeclarePluginContext
__DeclarePluginContext()
PostEffects::BloomContext::Discard
static void Discard()
discard context
Definition
bloomcontext.cc:293
PostEffects::BloomContext::SetDirtMask
static void SetDirtMask(const CoreGraphics::TextureId texture)
Screen-space lens dirt multiplied onto the bloom.
Definition
bloomcontext.cc:262
PostEffects::BloomContext::Setup
static void Setup()
setup bloom context
Definition
bloomcontext.cc:73
PostEffects::BloomContext::Resize
static void Resize(const uint framescriptHash, SizeT width, SizeT height)
Handle window resize.
Definition
bloomcontext.cc:192
PostEffects::BloomContext::Dealloc
static void Dealloc(Graphics::ContextEntityId id)
implement a dummy dealloc
Definition
bloomcontext.h:44
PostEffects::BloomContext::BloomContext
BloomContext()
constructor
Definition
bloomcontext.cc:58
PostEffects::BloomContext::Create
static void Create()
create context
Definition
bloomcontext.cc:280
graphicscontext.h
PostEffects
Bloom post effect.
Definition
bloomcontext.cc:18
CoreGraphics::TextureId
texture type
Definition
texture.h:25
Graphics::ContextEntityId
Definition
graphicscontext.h:143
texture.h
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.