Table of Contents

Class GlyphMesh

Namespace
Stride.CommunityToolkit.Rendering.Text
Assembly
Stride.CommunityToolkit.dll

One glyph of a string as its own mesh, centred on itself, with where it belongs in the text: what CreateGlyphs(MeshFont, string, TextMeshOptions?) returns, for one body or one animation per letter.

public sealed record GlyphMesh : IEquatable<GlyphMesh>
Inheritance
GlyphMesh
Implements

Constructors

GlyphMesh(int, Vector3, GeometricMeshData<VertexPositionNormalTexture>)

One glyph of a string as its own mesh, centred on itself, with where it belongs in the text: what CreateGlyphs(MeshFont, string, TextMeshOptions?) returns, for one body or one animation per letter.

public GlyphMesh(int Codepoint, Vector3 Position, GeometricMeshData<VertexPositionNormalTexture> Mesh)

Parameters

Codepoint int

The character the glyph draws.

Position Vector3

The centre of the glyph's bounds within the text, in world units; put the entity there.

Mesh GeometricMeshData<VertexPositionNormalTexture>

The glyph as a solid, centred on the origin.

Properties

Codepoint

The character the glyph draws.

public int Codepoint { get; init; }

Property Value

int

Mesh

The glyph as a solid, centred on the origin.

public GeometricMeshData<VertexPositionNormalTexture> Mesh { get; init; }

Property Value

GeometricMeshData<VertexPositionNormalTexture>

Position

The centre of the glyph's bounds within the text, in world units; put the entity there.

public Vector3 Position { get; init; }

Property Value

Vector3