Vector Graphics
Vector Graphics (VG) module provides functions to render GPU-accelerated vector graphics on 2D or 3D space.
Types
-
Represents one font glyph packer that packs font glyph data to one.
-
Describes one vertex to be drawn for the glyph.
-
Describes one shape draw call.
-
Represents a draw list that contains shapes to be drawn.
-
Luna::VG::TextGlyphArrangeResult
Describes the arrange result of one text glyph.
-
Luna::VG::TextLineArrangeResult
Describes the arrange result of one text line that contains multiple glyphs.
-
Describes text arrange result returned by ITextArranger::arrange.
-
Describes parameters used to arrange one text section.
Enumerations
-
Specifies the test alignment side.
Constants
-
The command code that begins one new path.
-
The command code that draws one line from the last point to the specified point.
-
constexpr f32 COMMAND_CURVE_TO
The command code that draws a quadratic Belzier curve to the specified point.
-
constexpr f32 COMMAND_CIRCLE_Q1
The command code that draws one circle part in the first quadrant.
-
constexpr f32 COMMAND_CIRCLE_Q2
The command code that draws one circle part in the second quadrant.
-
constexpr f32 COMMAND_CIRCLE_Q3
The command code that draws one circle part in the third quadrant.
-
constexpr f32 COMMAND_CIRCLE_Q4
The command code that draws one circle part in the fourth quadrant.
Functions
-
Ref< IFontAtlas > new_font_atlas(Font::IFontFile font, u32 index, RHI::IDevice device=nullptr)
Creates one new font atlas.
-
Ref< IShapeDrawList > new_shape_draw_list(RHI::IDevice *device=nullptr)
Creates a new shape draw list.
-
R< Ref< IShapeRenderer > > new_fill_shape_renderer(RHI::ITexture *render_target)
Creates a new shape renderer that draws filled shape contours.
-
Arranges glyphs in the specified bounding rectangle.
-
Commits the text arrange result to the specicied draw list for rendering.