|
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 |
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 | |
| Context * | context = nullptr |
| IGraphicsDevice * | device = nullptr |
| PotreeSystem * | potreeSystem = nullptr |
| Cogs::VertexBufferHandle | boxVertices |
| Cogs::IndexBufferHandle | boxEdgeIndices |
| unsigned | boxEdgeIndexPrimitives = 0 |
| MeshStreamsLayout | boxStreamsLayout |
Definition at line 15 of file PotreeRenderer.h.
|
overridevirtual |
Implements Cogs::Core::IRendererExtension.
Definition at line 291 of file PotreeRenderer.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 247 of file PotreeRenderer.cpp.
References Cogs::BindFlags::ConstantBuffer, Cogs::TextureFlags::Default, Cogs::Usage::Dynamic, Cogs::IGraphicsDevice::getBuffers(), Cogs::IGraphicsDevice::getTextures(), Cogs::Core::HandleIsValid(), Cogs::IBuffers::loadBuffer(), Cogs::ITextures::loadTexture(), Cogs::Handle_t< TextureTag >::NoHandle, Cogs::Core::RenderingEvent::PostRender, Cogs::Core::RenderingEvent::PreRender, Cogs::ITextures::releaseTexture(), and Cogs::AccessMode::Write.
|
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 207 of file PotreeRenderer.cpp.
References Cogs::IGraphicsDevice::getBuffers(), Cogs::Core::MeshStreamsLayout::numStreams, Cogs::Position, Cogs::Core::MeshStreamsLayout::updateHash(), Cogs::VertexData, and Cogs::Core::MeshStreamsLayout::vertexFormats.
| unsigned Cogs::Core::PotreeRenderer::boxEdgeIndexPrimitives = 0 |
Definition at line 28 of file PotreeRenderer.h.
| Cogs::IndexBufferHandle Cogs::Core::PotreeRenderer::boxEdgeIndices |
Definition at line 27 of file PotreeRenderer.h.
| MeshStreamsLayout Cogs::Core::PotreeRenderer::boxStreamsLayout |
Definition at line 30 of file PotreeRenderer.h.
| Cogs::VertexBufferHandle Cogs::Core::PotreeRenderer::boxVertices |
Definition at line 26 of file PotreeRenderer.h.
| Context* Cogs::Core::PotreeRenderer::context = nullptr |
Definition at line 22 of file PotreeRenderer.h.
| IGraphicsDevice* Cogs::Core::PotreeRenderer::device = nullptr |
Definition at line 23 of file PotreeRenderer.h.
| PotreeSystem* Cogs::Core::PotreeRenderer::potreeSystem = nullptr |
Definition at line 25 of file PotreeRenderer.h.