mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-28 14:08:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
101
Brutal.Sdl.Ttf/Generated/SdlTtf.Structs.gen.cs
Normal file
101
Brutal.Sdl.Ttf/Generated/SdlTtf.Structs.gen.cs
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
// <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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue