class
RibbonRenderer
Abstract ribbon (trail-strip) renderer interface. The concrete backend (RHIRibbonRenderer) is implemented on the Platform/ RHI API and draws into an off-screen target set before Initialize.
- Module
- Particles
- Header
#include "Renderer/RibbonRenderer.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
virtual ~RibbonRenderer() = default | ~RibbonRenderer |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | Initialize | |
void | Shutdown | |
void | SetTargetFramebuffer | Off-screen target the renderer draws into (set before Initialize). |
void | Render | |
void | RenderWithDS | Externally-owned depth DS surface (backend-agnostic) used by SceneRenderer. |
Ref<DescriptorSet> | AllocateDepthDS | |
Ref<Sampler> | GetNearestSampler | |
void | Clear | |
bool | HasData | |
bool | HasDepthData | |
bool | HasNoDepthData | |
const std::vector<RibbonVertex>& | GetVerticesDepth | Separate buffers for depth-tested and non-depth-tested ribbons |
const std::vector<uint32_t>& | GetIndicesDepth | |
const std::vector<RibbonVertex>& | GetVerticesNoDepth | |
const std::vector<uint32_t>& | GetIndicesNoDepth | |
void | AddRibbon | Add ribbon with depth test setting |
void | EndFrame | Swap buffers for double-buffering |
RibbonRenderer* | Create | Factory — returns the RHI-generic backend (RHIRibbonRenderer). |
void | Destroy |
Function details
~RibbonRenderer
C++
virtual ~RibbonRenderer() = defaultInitialize
C++
virtual bool Initialize(const std::string& vfsShaderPath) = 0Shutdown
C++
virtual void Shutdown() = 0SetTargetFramebuffer
C++
virtual void SetTargetFramebuffer(const FramebufferSpecification& spec) = 0Off-screen target the renderer draws into (set before Initialize).
Render
C++
virtual void Render(const Mat4& viewProjection, bool depthTest) = 0RenderWithDS
C++
virtual void RenderWithDS(const Mat4& viewProjection, Ref<DescriptorSet> depthDS, uint32_t viewportWidth, uint32_t viewportHeight) = 0Externally-owned depth DS surface (backend-agnostic) used by SceneRenderer.
AllocateDepthDS
C++
virtual Ref<DescriptorSet> AllocateDepthDS(const std::string& debugName) = 0GetNearestSampler
C++
virtual Ref<Sampler> GetNearestSampler() const = 0Clear
C++
void Clear()HasData
C++
bool HasData() constHasDepthData
C++
bool HasDepthData() constHasNoDepthData
C++
bool HasNoDepthData() constGetVerticesDepth
C++
const std::vector<RibbonVertex>& GetVerticesDepth() constSeparate buffers for depth-tested and non-depth-tested ribbons
GetIndicesDepth
C++
const std::vector<uint32_t>& GetIndicesDepth() constGetVerticesNoDepth
C++
const std::vector<RibbonVertex>& GetVerticesNoDepth() constGetIndicesNoDepth
C++
const std::vector<uint32_t>& GetIndicesNoDepth() constAddRibbon
C++
void AddRibbon(const RibbonSegment* segments, size_t segmentCount, const Vec3& cameraPos, bool loop, bool depthTest)Add ribbon with depth test setting
EndFrame
C++
void EndFrame()Swap buffers for double-buffering
Create
C++
static RibbonRenderer* Create()Factory — returns the RHI-generic backend (RHIRibbonRenderer).
Destroy
C++
static void Destroy(RibbonRenderer* renderer)Generated from Renderer/RibbonRenderer.h via particles.json · Oct 31, 2026Version 1.0.0