mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
15 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
public enum TtfDirection : uint
|
||||
{
|
||||
Invalid = 0u,
|
||||
Ltr = 4u,
|
||||
Rtl = 5u,
|
||||
Ttb = 6u,
|
||||
Btt = 7u,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
public enum TtfDrawCommand : uint
|
||||
{
|
||||
Noop = 0u,
|
||||
Fill = 1u,
|
||||
Copy = 2u,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
[Flags]
|
||||
public enum TtfFontStyleFlags : uint
|
||||
{
|
||||
Bold = 1u,
|
||||
Italic = 2u,
|
||||
Normal = 0u,
|
||||
Strikethrough = 8u,
|
||||
Underline = 4u,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
public enum TtfGpuTextEngineWinding
|
||||
{
|
||||
Invalid = -1,
|
||||
Clockwise = 0,
|
||||
CounterClockwise = 1,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
public enum TtfHintingFlags
|
||||
{
|
||||
Invalid = -1,
|
||||
Normal = 0,
|
||||
Light = 1,
|
||||
Mono = 2,
|
||||
None = 3,
|
||||
LightSubpixel = 4,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
public enum TtfHorizontalAlignment
|
||||
{
|
||||
Invalid = -1,
|
||||
Left = 0,
|
||||
Center = 1,
|
||||
Right = 2,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
public enum TtfImageType : uint
|
||||
{
|
||||
Invalid = 0u,
|
||||
Alpha = 1u,
|
||||
Color = 2u,
|
||||
Sdf = 3u,
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
[Flags]
|
||||
public enum TtfSubStringFlags : uint
|
||||
{
|
||||
LineEnd = 1024u,
|
||||
LineStart = 512u,
|
||||
TextEnd = 2048u,
|
||||
TextStart = 256u,
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load diff
50
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.Constants.gen.cs
Normal file
50
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.Constants.gen.cs
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf
|
||||
{
|
||||
public static unsafe partial class SdlTtf
|
||||
{
|
||||
public static class Constants
|
||||
{
|
||||
public const int FontWeightBlack = 900;
|
||||
public const int FontWeightBold = 700;
|
||||
public const int FontWeightExtraBlack = 950;
|
||||
public const int FontWeightExtraBold = 800;
|
||||
public const int FontWeightExtraLight = 200;
|
||||
public const int FontWeightLight = 300;
|
||||
public const int FontWeightMedium = 500;
|
||||
public const int FontWeightNormal = 400;
|
||||
public const int FontWeightSemiBold = 600;
|
||||
public const int FontWeightThin = 100;
|
||||
public const string PropFontCreateExistingFont = "SDL_ttf.font.create.existing_font";
|
||||
public const string PropFontCreateFaceNumber = "SDL_ttf.font.create.face";
|
||||
public const string PropFontCreateFilenameString = "SDL_ttf.font.create.filename";
|
||||
public const string PropFontCreateHorizontalDpiNumber = "SDL_ttf.font.create.hdpi";
|
||||
public const string PropFontCreateIostreamAutocloseBoolean = "SDL_ttf.font.create.iostream.autoclose";
|
||||
public const string PropFontCreateIostreamOffsetNumber = "SDL_ttf.font.create.iostream.offset";
|
||||
public const string PropFontCreateIostreamPointer = "SDL_ttf.font.create.iostream";
|
||||
public const string PropFontCreateSizeFloat = "SDL_ttf.font.create.size";
|
||||
public const string PropFontCreateVerticalDpiNumber = "SDL_ttf.font.create.vdpi";
|
||||
public const string PropFontOutlineLineCapNumber = "SDL_ttf.font.outline.line_cap";
|
||||
public const string PropFontOutlineLineJoinNumber = "SDL_ttf.font.outline.line_join";
|
||||
public const string PropFontOutlineMiterLimitNumber = "SDL_ttf.font.outline.miter_limit";
|
||||
public const string PropGpuTextEngineAtlasTextureSize = "SDL_ttf.gpu_text_engine.create.atlas_texture_size";
|
||||
public const string PropGpuTextEngineDevice = "SDL_ttf.gpu_text_engine.create.device";
|
||||
public const string PropRendererTextEngineAtlasTextureSize =
|
||||
"SDL_ttf.renderer_text_engine.create.atlas_texture_size";
|
||||
public const string PropRendererTextEngineRenderer = "SDL_ttf.renderer_text_engine.create.renderer";
|
||||
public const int StyleBold = 1;
|
||||
public const int StyleItalic = 2;
|
||||
public const int StyleNormal = 0;
|
||||
public const int StyleStrikethrough = 8;
|
||||
public const int StyleUnderline = 4;
|
||||
public const int SubstringDirectionMask = 255;
|
||||
public const int SubstringLineEnd = 1024;
|
||||
public const int SubstringLineStart = 512;
|
||||
public const int SubstringTextEnd = 2048;
|
||||
public const int SubstringTextStart = 256;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
namespace Brutal.SdlApi.Ttf { }
|
||||
1296
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.HandleMethods.gen.cs
Normal file
1296
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.HandleMethods.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
26
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.Handles.gen.cs
Normal file
26
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.Handles.gen.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
// <auto-generated/>
|
||||
// Generated by Brutal.Sdl.Generate; do not edit by hand.
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
using Brutal.Interop;
|
||||
|
||||
namespace Brutal.SdlApi.Ttf;
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed interop handle wrapping the opaque SDL <c>TTF_Font</c> pointer.
|
||||
/// </summary>
|
||||
[InteropHandle]
|
||||
public readonly unsafe partial struct TtfFont : IDisposable
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public void Dispose()
|
||||
{
|
||||
// A default/zeroed handle owns nothing; forwarding it to the native destructor is at
|
||||
// best a wasted call and at worst undefined behaviour. Guard so Dispose is a safe no-op
|
||||
// on a null handle (and so a double-dispose after the value was cleared is harmless).
|
||||
if (IsNull())
|
||||
return;
|
||||
SdlTtf.PInvoke.CloseFont(this);
|
||||
}
|
||||
}
|
||||
1416
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.PInvoke.gen.cs
Normal file
1416
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.PInvoke.gen.cs
Normal file
File diff suppressed because it is too large
Load diff
101
brutal.sdl/Brutal.Sdl.Ttf/Generated/SdlTtf.Structs.gen.cs
Normal file
101
brutal.sdl/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