Table of Contents

Class GlyphRangeFactory

Namespace
SharpPluginLoader.Core.Rendering
Assembly
SharpPluginLoader.Core.dll

A class for creating glyph ranges for ImGui.

public static class GlyphRangeFactory
Inheritance
GlyphRangeFactory
Inherited Members

Methods

CreateGlyphRanges(params (ushort start, ushort end)[])

Creates a new set of glyph ranges from the provided ranges, with a null terminator at the end.

public static nint CreateGlyphRanges(params (ushort start, ushort end)[] ranges)

Parameters

ranges (ushort start, ushort end)[]

The ranges to create the glyph ranges from

Returns

nint

The newly allocated glyph ranges which can be used with ImGui

Remarks

You must call DestroyGlyphRanges(nint) when you are done with the glyph ranges.

DestroyGlyphRanges(nint)

Destroys the glyph ranges created by CreateGlyphRanges(params (ushort start, ushort end)[]).

public static void DestroyGlyphRanges(nint ranges)

Parameters

ranges nint

The glyph ranges to destroy