|
Cogs.Core
|
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 |
Definition at line 20 of file OctRenderer.h.
|
overridevirtual |
Implements Cogs::Core::IRendererExtension.
Definition at line 447 of file OctRenderer.cpp.
| void Cogs::Core::Volumetric::OctRenderer::handleAtlasWipe | ( | const DrawContext * | renderingContext, |
| OctComponent & | octComp, | ||
| OctData & | octData | ||
| ) |
Definition at line 435 of file OctRenderer.cpp.
|
overridevirtual |
Called when rendering events occur.
Allows rendering extensions to handle the events in a custom way.
| eventId | Rendering event identifier. May be one of RenderingEvent, or custom identifier. |
| renderingContext | Pointer 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.
|
overridevirtual |
Initialize the extension using the given context and device.
| context | Context the extension exists in. |
| device | Graphics device used by the renderer that can be shared with the extension. |
Implements Cogs::Core::IRendererExtension.
Definition at line 307 of file OctRenderer.cpp.
References Cogs::SamplerState::addressModeS, Cogs::SamplerState::addressModeT, Cogs::SamplerState::addressModeW, Cogs::SamplerState::Clamp, Cogs::BindFlags::ConstantBuffer, Cogs::SamplerState::DefaultState(), Cogs::Usage::Dynamic, Cogs::SamplerState::filter, Cogs::IGraphicsDevice::getBuffers(), Cogs::IGraphicsDevice::getRenderTargets(), Cogs::IGraphicsDevice::getTextures(), Cogs::InstanceData, Cogs::InstanceVector, Cogs::DepthStencilState::Less, Cogs::IRenderTargets::loadDepthStencilState(), Cogs::IBuffers::loadIndexBuffer(), Cogs::IBuffers::loadVertexBuffer(), Cogs::SamplerState::MinMagMipLinear, Cogs::Core::MeshStreamsLayout::numStreams, Cogs::Core::MeshStreamsLayout::updateHash(), Cogs::Core::MeshStreamsLayout::vertexFormats, and Cogs::AccessMode::Write.
| SamplerStateHandle Cogs::Core::Volumetric::OctRenderer::atlasSampler |
Definition at line 42 of file OctRenderer.h.
| class Context* Cogs::Core::Volumetric::OctRenderer::context |
Definition at line 30 of file OctRenderer.h.
| IndexBufferHandle Cogs::Core::Volumetric::OctRenderer::cubeIndices |
Definition at line 46 of file OctRenderer.h.
| VertexBufferHandle Cogs::Core::Volumetric::OctRenderer::cubeVertices |
Definition at line 45 of file OctRenderer.h.
| MeshStreamsLayout Cogs::Core::Volumetric::OctRenderer::debugStreamsLayout |
Definition at line 39 of file OctRenderer.h.
| MaterialInstanceHandle Cogs::Core::Volumetric::OctRenderer::defaultMatInstance |
Definition at line 41 of file OctRenderer.h.
| DepthStencilStateHandle Cogs::Core::Volumetric::OctRenderer::depthStencilState |
Definition at line 43 of file OctRenderer.h.
| IGraphicsDevice* Cogs::Core::Volumetric::OctRenderer::device |
Definition at line 29 of file OctRenderer.h.
| BufferHandle Cogs::Core::Volumetric::OctRenderer::octParamsBuffer |
Definition at line 47 of file OctRenderer.h.
| MeshStreamsLayout Cogs::Core::Volumetric::OctRenderer::octStreamsLayout |
Definition at line 36 of file OctRenderer.h.
| struct OctSystem* Cogs::Core::Volumetric::OctRenderer::octSystem |
Definition at line 32 of file OctRenderer.h.