Nebula
Loading...
Searching...
No Matches
PostEffects::HistogramContext Class Reference

#include <histogramcontext.h>

Inherits Graphics::GraphicsContext.

Public Member Functions

 HistogramContext ()
 constructor
virtual ~HistogramContext ()
 destructor
Public Member Functions inherited from Graphics::GraphicsContext
 GraphicsContext ()
 constructor
virtual ~GraphicsContext ()
 destructor

Static Public Member Functions

static void Create ()
 create context
static void Discard ()
 discard context
static void SetWindow (const Math::float2 offset, Math::float2 size, int mip)
 set histogram window in relative coordinates and mip of source texture
static void Setup ()
 setup bloom context
static void UpdateViewResources (const Graphics::ViewId view, const Graphics::FrameContext &ctx)
 update view resources
static void UpdateConstants ()
 update constants
static void Resize (const uint framescriptHash, SizeT width, SizeT height)
 Handle window resize.
static void OnViewCreated (const Graphics::ViewId view)
 Handle new view being created.
static void OnViewRemoved (const Graphics::ViewId view)
 Handle view being removed.

Private Member Functions

 __DeclarePluginContext ()

Static Private Member Functions

static Graphics::ContextEntityId Alloc ()
 implement an empty alloc
static void Dealloc (Graphics::ContextEntityId id)
 implement a dummy dealloc

Additional Inherited Members

Static Protected Member Functions inherited from Graphics::GraphicsContext
static void InternalRegisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
static void InternalDeregisterEntity (const Graphics::GraphicsEntityId id, Graphics::GraphicsContextState &&state)
template<class ID_ALLOCATOR>
static void InternalDefragment (ID_ALLOCATOR &allocator, Graphics::GraphicsContextState &&state)

Constructor & Destructor Documentation

◆ HistogramContext()

PostEffects::HistogramContext::HistogramContext ( )

constructor

◆ ~HistogramContext()

PostEffects::HistogramContext::~HistogramContext ( )
virtual

destructor

Member Function Documentation

◆ __DeclarePluginContext()

PostEffects::HistogramContext::__DeclarePluginContext ( )
private

◆ Alloc()

Graphics::ContextEntityId PostEffects::HistogramContext::Alloc ( )
inlinestaticprivate

implement an empty alloc

◆ Create()

void PostEffects::HistogramContext::Create ( )
static

create context

◆ Dealloc()

void PostEffects::HistogramContext::Dealloc ( Graphics::ContextEntityId id)
inlinestaticprivate

implement a dummy dealloc

◆ Discard()

void PostEffects::HistogramContext::Discard ( )
static

discard context

◆ OnViewCreated()

void PostEffects::HistogramContext::OnViewCreated ( const Graphics::ViewId view)
static

Handle new view being created.

◆ OnViewRemoved()

void PostEffects::HistogramContext::OnViewRemoved ( const Graphics::ViewId view)
static

Handle view being removed.

◆ Resize()

void PostEffects::HistogramContext::Resize ( const uint framescriptHash,
SizeT width,
SizeT height )
static

Handle window resize.

◆ Setup()

void PostEffects::HistogramContext::Setup ( )
static

setup bloom context

◆ SetWindow()

void PostEffects::HistogramContext::SetWindow ( const Math::float2 offset,
Math::float2 size,
int mip )
static

set histogram window in relative coordinates and mip of source texture

◆ UpdateConstants()

void PostEffects::HistogramContext::UpdateConstants ( )
static

update constants

◆ UpdateViewResources()

void PostEffects::HistogramContext::UpdateViewResources ( const Graphics::ViewId view,
const Graphics::FrameContext & ctx )
static

update view resources


The documentation for this class was generated from the following files: