mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 04:58:24 +01:00
101 lines
2.6 KiB
C#
101 lines
2.6 KiB
C#
// <auto-generated/>
|
|
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
|
#nullable enable
|
|
|
|
namespace Brutal.SdlApi.Ttf
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct TtfTextEngine
|
|
{
|
|
public uint version;
|
|
public void* userdata;
|
|
public delegate* unmanaged[Cdecl]<void*, TtfText*, byte> CreateText;
|
|
public delegate* unmanaged[Cdecl]<void*, TtfText*, void> DestroyText;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct TtfTextData
|
|
{
|
|
public TtfFont font;
|
|
public SdlFColor color;
|
|
public byte needs_layout_update;
|
|
public nint layout;
|
|
public int x;
|
|
public int y;
|
|
public int w;
|
|
public int h;
|
|
public int num_ops;
|
|
public TtfDrawOperation* ops;
|
|
public int num_clusters;
|
|
public TtfSubString* clusters;
|
|
public uint props;
|
|
public byte needs_engine_update;
|
|
public TtfTextEngine* engine;
|
|
public void* engine_text;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct TtfText
|
|
{
|
|
public byte* text;
|
|
public int num_lines;
|
|
public int refcount;
|
|
public TtfTextData* @internal;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct TtfGpuAtlasDrawSequence
|
|
{
|
|
public nint atlas_texture;
|
|
public SdlFPoint* xy;
|
|
public SdlFPoint* uv;
|
|
public int num_vertices;
|
|
public int* indices;
|
|
public int num_indices;
|
|
public TtfImageType image_type;
|
|
public TtfGpuAtlasDrawSequence* next;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct TtfSubString
|
|
{
|
|
public TtfSubStringFlags flags;
|
|
public int offset;
|
|
public int length;
|
|
public int line_index;
|
|
public int cluster_index;
|
|
public SdlRect rect;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public partial struct TtfFillOperation
|
|
{
|
|
public TtfDrawCommand cmd;
|
|
public SdlRect rect;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public unsafe partial struct TtfCopyOperation
|
|
{
|
|
public TtfDrawCommand cmd;
|
|
public int text_offset;
|
|
public TtfFont glyph_font;
|
|
public uint glyph_index;
|
|
public SdlRect src;
|
|
public SdlRect dst;
|
|
public void* reserved;
|
|
}
|
|
|
|
[StructLayout(LayoutKind.Explicit)]
|
|
public partial struct TtfDrawOperation
|
|
{
|
|
[FieldOffset(0)]
|
|
public TtfDrawCommand cmd;
|
|
|
|
[FieldOffset(0)]
|
|
public TtfFillOperation fill;
|
|
|
|
[FieldOffset(0)]
|
|
public TtfCopyOperation copy;
|
|
}
|
|
}
|