Cogs.Core
Public Member Functions | Public Attributes | List of all members
Cogs::Core::Volumetric::OctRenderer Struct Reference
Inheritance diagram for Cogs::Core::Volumetric::OctRenderer:
Cogs::Core::IRendererExtension

Public Member Functions

void initialize (Context *context, IGraphicsDevice *device) override
 Initialize the extension using the given context and device.
 
void handleEvent (uint32_t eventId, const DrawContext *renderingContext) override
 Called when rendering events occur.
 
void generateCommands (const RenderTaskContext *renderingContext, RenderList *renderList) override
 
void handleAtlasWipe (const DrawContext *renderingContext, OctComponent &octComp, OctData &octData)
 
- Public Member Functions inherited from Cogs::Core::IRendererExtension
virtual ~IRendererExtension ()=default
 Provided for destruction via pointer to base.
 
virtual void initialize (class Context *context, IGraphicsDevice *device)=0
 Initialize the extension using the given context and device.
 
virtual void handleEvent (uint32_t eventId, const DrawContext *renderingContext)=0
 Called when rendering events occur.
 
virtual void generateCommands (const RenderTaskContext *renderingContext, RenderList *renderList)=0
 

Public Attributes

IGraphicsDevicedevice
 
class Contextcontext
 
struct OctSystemoctSystem
 
MeshStreamsLayout octStreamsLayout
 
MeshStreamsLayout debugStreamsLayout
 
MaterialInstanceHandle defaultMatInstance
 
SamplerStateHandle atlasSampler
 
DepthStencilStateHandle depthStencilState
 
VertexBufferHandle cubeVertices
 
IndexBufferHandle cubeIndices
 
BufferHandle octParamsBuffer
 

Detailed Description

Definition at line 20 of file OctRenderer.h.

Member Function Documentation

◆ generateCommands()

void Cogs::Core::Volumetric::OctRenderer::generateCommands ( const RenderTaskContext renderingContext,
RenderList renderList 
)
overridevirtual

Implements Cogs::Core::IRendererExtension.

Definition at line 447 of file OctRenderer.cpp.

◆ handleAtlasWipe()

void Cogs::Core::Volumetric::OctRenderer::handleAtlasWipe ( const DrawContext renderingContext,
OctComponent octComp,
OctData octData 
)

Definition at line 435 of file OctRenderer.cpp.

◆ handleEvent()

void Cogs::Core::Volumetric::OctRenderer::handleEvent ( uint32_t  eventId,
const DrawContext renderingContext 
)
overridevirtual

Called when rendering events occur.

Allows rendering extensions to handle the events in a custom way.

Parameters
eventIdRendering event identifier. May be one of RenderingEvent, or custom identifier.
renderingContextPointer to rendering context data, or nullptr if not present.

Implements Cogs::Core::IRendererExtension.

Definition at line 345 of file OctRenderer.cpp.

References Cogs::Core::RenderingEvent::PostRender, Cogs::Core::RenderingEvent::PreRender, and Cogs::MapMode::WriteDiscard.

◆ initialize()

void Cogs::Core::Volumetric::OctRenderer::initialize ( Context context,
IGraphicsDevice device 
)
overridevirtual

Member Data Documentation

◆ atlasSampler

SamplerStateHandle Cogs::Core::Volumetric::OctRenderer::atlasSampler

Definition at line 42 of file OctRenderer.h.

◆ context

class Context* Cogs::Core::Volumetric::OctRenderer::context

Definition at line 30 of file OctRenderer.h.

◆ cubeIndices

IndexBufferHandle Cogs::Core::Volumetric::OctRenderer::cubeIndices

Definition at line 46 of file OctRenderer.h.

◆ cubeVertices

VertexBufferHandle Cogs::Core::Volumetric::OctRenderer::cubeVertices

Definition at line 45 of file OctRenderer.h.

◆ debugStreamsLayout

MeshStreamsLayout Cogs::Core::Volumetric::OctRenderer::debugStreamsLayout

Definition at line 39 of file OctRenderer.h.

◆ defaultMatInstance

MaterialInstanceHandle Cogs::Core::Volumetric::OctRenderer::defaultMatInstance

Definition at line 41 of file OctRenderer.h.

◆ depthStencilState

DepthStencilStateHandle Cogs::Core::Volumetric::OctRenderer::depthStencilState

Definition at line 43 of file OctRenderer.h.

◆ device

IGraphicsDevice* Cogs::Core::Volumetric::OctRenderer::device

Definition at line 29 of file OctRenderer.h.

◆ octParamsBuffer

BufferHandle Cogs::Core::Volumetric::OctRenderer::octParamsBuffer

Definition at line 47 of file OctRenderer.h.

◆ octStreamsLayout

MeshStreamsLayout Cogs::Core::Volumetric::OctRenderer::octStreamsLayout

Definition at line 36 of file OctRenderer.h.

◆ octSystem

struct OctSystem* Cogs::Core::Volumetric::OctRenderer::octSystem

Definition at line 32 of file OctRenderer.h.


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