|
| void | Reset () override |
| void | SetTransform (tachyon::float3x2 transform) override |
| void | SetOpacity (float opacity) override |
| | How opaque what is drawn from now on is, 0 to 1 (1 until set).
|
| void | RenderBox (tachyon::IntRect rect, tachyon::IntRect clipRect, const tachyon::StyleBlend &styles, tachyon::VisualColorStyleIndex colorStyleIndex={}, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, tachyon::IntRect snappedPx={}) override |
| | Draws a styled box, styles mixed.
|
| void | RenderGlyph (tachyon::float2 pos, tachyon::float2 size, tachyon::float2 uvMin, tachyon::float2 uvMax, float scale, int bpp, int mode, tachyon::VisualColorStyleIndex textColorIndex, tachyon::IntRect clipRect, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, float shadowBlur=-1.0f) override |
| | A glyph from the text atlas.
|
| void | RenderGlyphs (std::span< const GlyphInstance > glyphs, tachyon::float2 offset, tachyon::IntRect clipRect) override |
| | RenderGlyph for each of glyphs, moved by offset, in order: a text's glyphs at once.
|
| void | RenderLine (tachyon::int2 p0, tachyon::int2 p1, tachyon::int2 p2, tachyon::int2 p3, tachyon::IntRect clipRect, const tachyon::LineStyle &lineStyle) override |
| void | RenderCircle (tachyon::float2 center, float radius, tachyon::IntRect clipRect, const tachyon::LineStyle &lineStyle) override |
| | A circle outline lineStyle.lineWidth wide, exactly round.
|
| void | RenderDot (tachyon::float2 pos, tachyon::IntRect clipRect, float size, tachyon::color4f color) override |
| void | RenderDots (std::span< const tachyon::float2 > positions, tachyon::IntRect clipRect, float size, tachyon::color4f color) override |
| | RenderDot at each of positions, in order, all alike.
|
| void | RenderTriangle (tachyon::float2 p0, tachyon::float2 p1, tachyon::float2 p2, tachyon::IntRect clipRect, tachyon::VisualColorStyleIndex colorStyleIndex, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, TriangleEdges hardEdges=TriangleEdges::None) override |
| | A filled triangle.
|
| void | RenderQuad (tachyon::IntRect rect, tachyon::IntRect clipRect, tachyon::VisualColorStyleIndex colorStyleIndex, float cornerRadius=0.0f, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, const tachyon::UVRect &uv={}, const tachyon::ImageDisplay &display={}) override |
| | Draws a filled, optionally rounded and textured rect: a box without borders, style blending or element state.
|
| void | RenderShadow (tachyon::IntRect rect, tachyon::IntRect clipRect, tachyon::VisualColorStyleIndex colorStyleIndex, float cornerRadius, int blur) override |
| | A box shadow: rect is the shadow's shape, which fades out over blur pixels on either side of its edge (Gaussian, sigma = blur / 2, as CSS).
|
| void | RenderOccluder (tachyon::IntRect rect, tachyon::IntRect clipRect) override |
| | Draws nothing: marks rect as covered by opaque content drawn after this call, so what was drawn before it there is skipped on the GPU.
|
| PrimitiveRenderTarget & | GetTarget (tachyon::ID id) |
| void | ReleaseTarget (tachyon::ID id) |
| | Drops the CPU-side target of window id, when the window is destroyed.
|
| void | ReleaseAllTargets () |
| bool | StartResizing (tachyon::ID id) override |
| void | StopResizing () override |
| bool | BeginWindow (tachyon::ID id) override |
| void | EndWindow () override |
| bool | DrawsChanged (tachyon::ID window) const override |
| | Whether the window's draws this frame differ from its last frame's (as of its EndWindow); true when the renderer can't tell.
|
| void | BeginScopeCapture (tachyon::ID scopeId) override |
| | Starts recording primitives under scopeId, replacing its previous capture.
|
| void | EndScopeCapture (tachyon::ID scopeId) override |
| | Ends the capture of scopeId and draws it into the current window.
|
| bool | ReplayScopeCapture (tachyon::ID scopeId, tachyon::int2 delta) override |
| | Draws the capture of scopeId again, moved by delta pixels; false if there is none.
|
| bool | HasScopeCapture (tachyon::ID scopeId) const override |
| | True when scopeId has a non-empty capture.
|
| void | InvalidateScopeCapture (tachyon::ID scopeId) override |
| | Drops the capture of scopeId.
|
| void | ClearScopeCaptures () override |
| | Drops every capture.
|
| void | Render (tachyon::ID id, RHI::RenderCommandList &cmdList, const PipelineSet &pipelines, GPUDrawPushConstants &push_constants) |
| size_t | LastFrameUploadBytes () const |
| | Primitive bytes the last Render uploaded with the frame; cached scopes drawn from their GPU copy add nothing.
|
| size_t | ResidentScopeCount () const |
| | Captured scopes with a GPU copy (made or on its way).
|
| void | RenderBox (tachyon::IntRect rect, tachyon::IntRect clipRect, uint32_t fromStyleIndex, uint32_t toStyleIndex, float blendT, tachyon::VisualColorStyleIndex colorStyleIndex={}, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, tachyon::IntRect snappedPx={}) |
| | As above, blended from fromStyleIndex to toStyleIndex (flat GPU style indices) by blendT in [0, 1].
|
| void | RenderBox (tachyon::IntRect rect, tachyon::IntRect clipRect, VisualBoxStyleIndex boxStyleIndex, tachyon::ElementState state, tachyon::VisualColorStyleIndex colorStyleIndex={}, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, tachyon::IntRect snappedPx={}) |
| void | RenderBox (tachyon::IntRect rect, tachyon::IntRect clipRect, VisualBoxStyleIndex boxStyleIndex, tachyon::VisualColorStyleIndex colorStyleIndex={}, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, tachyon::IntRect snappedPx={}) |
| virtual | ~GUIRenderer () |
| void | RenderBox (tachyon::IntRect rect, tachyon::IntRect clipRect, uint32_t fromStyleIndex, uint32_t toStyleIndex, float blendT, tachyon::VisualColorStyleIndex colorStyleIndex={}, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, tachyon::IntRect snappedPx={}) |
| | As above, blended from fromStyleIndex to toStyleIndex (flat GPU style indices) by blendT in [0, 1].
|
| void | RenderBox (tachyon::IntRect rect, tachyon::IntRect clipRect, VisualBoxStyleIndex boxStyleIndex, tachyon::ElementState state, tachyon::VisualColorStyleIndex colorStyleIndex={}, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, tachyon::IntRect snappedPx={}) |
| void | RenderBox (tachyon::IntRect rect, tachyon::IntRect clipRect, VisualBoxStyleIndex boxStyleIndex, tachyon::VisualColorStyleIndex colorStyleIndex={}, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid, tachyon::IntRect snappedPx={}) |
| void | RenderLine (tachyon::int2 p0, tachyon::int2 p1, tachyon::IntRect clipRect, const LineStyle &lineStyle) |
| void | RenderFilledPolygon (std::span< const tachyon::float2 > points, tachyon::IntRect clipRect, VisualColorStyleIndex colorIndex, tachyon::ImageIndex textureIndex=tachyon::ImageIndex::Invalid) |
| | Convex polygon, fan-triangulated from points[0]; needs at least 3 points.
|
| void | RenderPolyline (std::span< const tachyon::int2 > points, bool closed, tachyon::IntRect clipRect, const LineStyle &style) |
| | Outlined polyline; closed adds a segment from the last point back to the first.
|
| void | RenderArc (tachyon::float2 center, float radius, float width, float startTurns, float sweepTurns, tachyon::IntRect clipRect, VisualColorStyleIndex colorIndex) |
| | Part of a ring width wide, centred on the circle of radius around center, with round ends.
|