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

SignatureNameDescription
virtual ~RibbonRenderer() = default~RibbonRenderer

Public functions

ReturnsNameDescription
boolInitialize
voidShutdown
voidSetTargetFramebufferOff-screen target the renderer draws into (set before Initialize).
voidRender
voidRenderWithDSExternally-owned depth DS surface (backend-agnostic) used by SceneRenderer.
Ref<DescriptorSet>AllocateDepthDS
Ref<Sampler>GetNearestSampler
voidClear
boolHasData
boolHasDepthData
boolHasNoDepthData
const std::vector<RibbonVertex>&GetVerticesDepthSeparate 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
voidAddRibbonAdd ribbon with depth test setting
voidEndFrameSwap buffers for double-buffering
RibbonRenderer*CreateFactory — returns the RHI-generic backend (RHIRibbonRenderer).
voidDestroy

Function details

~RibbonRenderer

C++
virtual ~RibbonRenderer() = default

Initialize

C++
virtual bool Initialize(const std::string& vfsShaderPath) = 0

Shutdown

C++
virtual void Shutdown() = 0

SetTargetFramebuffer

C++
virtual void SetTargetFramebuffer(const FramebufferSpecification& spec) = 0

Off-screen target the renderer draws into (set before Initialize).

Render

C++
virtual void Render(const Mat4& viewProjection, bool depthTest) = 0

RenderWithDS

C++
virtual void RenderWithDS(const Mat4& viewProjection, Ref<DescriptorSet> depthDS, uint32_t viewportWidth, uint32_t viewportHeight) = 0

Externally-owned depth DS surface (backend-agnostic) used by SceneRenderer.

AllocateDepthDS

C++
virtual Ref<DescriptorSet> AllocateDepthDS(const std::string& debugName) = 0

GetNearestSampler

C++
virtual Ref<Sampler> GetNearestSampler() const = 0

Clear

C++
void Clear()

HasData

C++
bool HasData() const

HasDepthData

C++
bool HasDepthData() const

HasNoDepthData

C++
bool HasNoDepthData() const

GetVerticesDepth

C++
const std::vector<RibbonVertex>& GetVerticesDepth() const

Separate buffers for depth-tested and non-depth-tested ribbons

GetIndicesDepth

C++
const std::vector<uint32_t>& GetIndicesDepth() const

GetVerticesNoDepth

C++
const std::vector<RibbonVertex>& GetVerticesNoDepth() const

GetIndicesNoDepth

C++
const std::vector<uint32_t>& GetIndicesNoDepth() const

AddRibbon

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