ludus::graphics::renderer::SelectionOutlineRenderer¶
Ludus Wiki · API overview · Browse API
Class
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
#include <ludus/graphics/renderer/selection_outline.hpp>
class ludus::graphics::renderer::SelectionOutlineRenderer final
Static fields¶
MAX_STROKE_WIDTH_PIXELS¶
static constexpr foundation::float32 ludus::graphics::renderer::SelectionOutlineRenderer::MAX_STROKE_WIDTH_PIXELS = 16
Related types: foundation::float32
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
Methods¶
SelectionOutlineRenderer¶
ludus::graphics::renderer::SelectionOutlineRenderer::SelectionOutlineRenderer() noexcept
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
~SelectionOutlineRenderer¶
ludus::graphics::renderer::SelectionOutlineRenderer::~SelectionOutlineRenderer()
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
Initialize¶
rhi::RasterStatus ludus::graphics::renderer::SelectionOutlineRenderer::Initialize(rhi::DeviceHandle device, const rhi::RasterShaderDescription &maskVertex, const rhi::RasterShaderDescription &maskFragment, const rhi::RasterShaderDescription &edgeVertex, const rhi::RasterShaderDescription &edgeFragment) noexcept
| Parameter | Description |
|---|---|
device |
Ready device with the portable raster profile.
|
maskVertex |
Vertex stage of renderer_selection_mask.
|
maskFragment |
Fragment stage of renderer_selection_mask.
|
edgeVertex |
Vertex stage of renderer_selection_outline.
|
edgeFragment |
Fragment stage of renderer_selection_outline.
|
Returns
Related types: rhi::RasterStatus · rhi::DeviceHandle · rhi::RasterShaderDescription
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
Poll¶
rhi::RasterStatus ludus::graphics::renderer::SelectionOutlineRenderer::Poll() noexcept
Related types: rhi::RasterStatus
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
Reset¶
void ludus::graphics::renderer::SelectionOutlineRenderer::Reset() noexcept
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
IsReady¶
bool ludus::graphics::renderer::SelectionOutlineRenderer::IsReady() const noexcept
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
SetMesh¶
rhi::RasterStatus ludus::graphics::renderer::SelectionOutlineRenderer::SetMesh(foundation::BorrowedView< const foundation::math::Vector3 > positionsMesh, foundation::BorrowedView< const foundation::uint32 > indices) noexcept
| Parameter | Description |
|---|---|
positionsMesh |
Finite mesh-local positions.
|
indices |
Triangle-list indices into positionsMesh: a positive multiple of three, each below the position count.
|
Returns
Related types: foundation::BorrowedView · foundation::uint32 · rhi::RasterStatus · foundation::math::Vector3
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
ClearMesh¶
void ludus::graphics::renderer::SelectionOutlineRenderer::ClearMesh() noexcept
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
GetMeshStatus¶
rhi::RasterStatus ludus::graphics::renderer::SelectionOutlineRenderer::GetMeshStatus() noexcept
Related types: rhi::RasterStatus
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
Prepare¶
rhi::RasterStatus ludus::graphics::renderer::SelectionOutlineRenderer::Prepare(const SelectionOutlineView &view, PreparedSelectionOutline &outPrepared) noexcept
| Parameter | Description |
|---|---|
view |
Matrix, target extent and strokes.
|
outPrepared |
Null on entry; receives the version on Ready or Pending.
|
Returns
Related types: rhi::RasterStatus · PreparedSelectionOutline · SelectionOutlineView
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
GetStatus¶
rhi::RasterStatus ludus::graphics::renderer::SelectionOutlineRenderer::GetStatus(PreparedSelectionOutline prepared) noexcept
Related types: rhi::RasterStatus · PreparedSelectionOutline
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
Draw¶
rhi::RasterStatus ludus::graphics::renderer::SelectionOutlineRenderer::Draw(PreparedSelectionOutline prepared, const rhi::RasterPassDescription &description) noexcept
| Parameter | Description |
|---|---|
prepared |
A version whose GetStatus returned Ready, prepared for exactly this target extent.
|
description |
Target and optional viewport/scissor. Color is the acquired surface when null, otherwise an RGBA8 linear attachment. Load, store and depth members are replaced.
|
Returns
Related types: rhi::RasterStatus · PreparedSelectionOutline · rhi::RasterPassDescription
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp
Release¶
rhi::RasterStatus ludus::graphics::renderer::SelectionOutlineRenderer::Release(PreparedSelectionOutline &inoutPrepared) noexcept
Related types: rhi::RasterStatus · PreparedSelectionOutline
Declared in modules/graphics/renderer/include/ludus/graphics/renderer/selection_outline.hpp