Add .editorconfig and apply formatting
This commit is contained in:
parent
d1f0b9fd91
commit
696955463f
32 changed files with 6831 additions and 6808 deletions
51
.editorconfig
Normal file
51
.editorconfig
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
# EditorConfig is awesome: http://EditorConfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
|
||||||
|
# General
|
||||||
|
[*.{cs,csx,vb,vbx}]
|
||||||
|
indent_size = 4
|
||||||
|
insert_final_newline = true
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
# C# styles
|
||||||
|
[*.cs]
|
||||||
|
# Indentation preferences
|
||||||
|
csharp_indent_block_contents = true
|
||||||
|
csharp_indent_braces = false
|
||||||
|
csharp_indent_case_contents = true
|
||||||
|
csharp_indent_case_contents_when_block = true
|
||||||
|
csharp_indent_switch_labels = true
|
||||||
|
csharp_indent_labels = flush_left
|
||||||
|
csharp_style_namespace_declarations = file_scoped:warning
|
||||||
|
|
||||||
|
# Newline settings
|
||||||
|
csharp_new_line_before_open_brace = all
|
||||||
|
csharp_new_line_before_else = true
|
||||||
|
csharp_new_line_before_catch = true
|
||||||
|
csharp_new_line_before_finally = true
|
||||||
|
csharp_new_line_before_members_in_object_initializers = true
|
||||||
|
csharp_new_line_before_members_in_anonymous_types = true
|
||||||
|
csharp_new_line_between_query_expression_clauses = true
|
||||||
|
|
||||||
|
# Spacing
|
||||||
|
csharp_space_after_cast = false
|
||||||
|
csharp_space_after_colon_in_inheritance_clause = true
|
||||||
|
csharp_space_after_keywords_in_control_flow_statements = true
|
||||||
|
csharp_space_around_binary_operators = before_and_after
|
||||||
|
csharp_space_before_colon_in_inheritance_clause = true
|
||||||
|
csharp_space_between_method_call_empty_parameter_list_parentheses = false
|
||||||
|
csharp_space_between_method_call_name_and_opening_parenthesis = false
|
||||||
|
csharp_space_between_method_call_parameter_list_parentheses = false
|
||||||
|
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
|
||||||
|
csharp_space_between_method_declaration_parameter_list_parentheses = false
|
||||||
|
csharp_space_between_parentheses = false
|
||||||
|
|
||||||
|
# Blocks are allowed
|
||||||
|
csharp_prefer_braces = true:error
|
||||||
|
csharp_preserve_single_line_blocks = false
|
||||||
|
csharp_preserve_single_line_statements = false
|
||||||
|
|
@ -30,10 +30,10 @@ using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Runtime.Serialization;
|
using System.Runtime.Serialization;
|
||||||
|
|
||||||
namespace Raylib_cs.Tests
|
namespace Raylib_cs.Tests;
|
||||||
|
|
||||||
|
public static class BlittableHelper
|
||||||
{
|
{
|
||||||
public static class BlittableHelper
|
|
||||||
{
|
|
||||||
public static bool IsBlittable<T>()
|
public static bool IsBlittable<T>()
|
||||||
{
|
{
|
||||||
return IsBlittableCache<T>.VALUE;
|
return IsBlittableCache<T>.VALUE;
|
||||||
|
|
@ -66,5 +66,4 @@ namespace Raylib_cs.Tests
|
||||||
{
|
{
|
||||||
public static readonly bool VALUE = IsBlittable(typeof(T));
|
public static readonly bool VALUE = IsBlittable(typeof(T));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
using System;
|
using System;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Raylib_cs.Tests
|
namespace Raylib_cs.Tests;
|
||||||
|
|
||||||
|
public class RaylibTests
|
||||||
{
|
{
|
||||||
public class RaylibTests
|
|
||||||
{
|
|
||||||
private unsafe void CheckType<T>() where T : unmanaged
|
private unsafe void CheckType<T>() where T : unmanaged
|
||||||
{
|
{
|
||||||
Assert.True(BlittableHelper.IsBlittable<T>());
|
Assert.True(BlittableHelper.IsBlittable<T>());
|
||||||
|
|
@ -42,5 +42,4 @@ namespace Raylib_cs.Tests
|
||||||
CheckType<VrStereoConfig>();
|
CheckType<VrStereoConfig>();
|
||||||
CheckType<RenderBatch>();
|
CheckType<RenderBatch>();
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@ using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
[SuppressUnmanagedCodeSecurity]
|
||||||
|
public static unsafe partial class Raylib
|
||||||
{
|
{
|
||||||
[SuppressUnmanagedCodeSecurity]
|
|
||||||
public static unsafe partial class Raylib
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used by DllImport to load the native library
|
/// Used by DllImport to load the native library
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -2682,5 +2682,4 @@ namespace Raylib_cs
|
||||||
public static extern void DetachAudioMixedProcessor(
|
public static extern void DetachAudioMixedProcessor(
|
||||||
delegate* unmanaged[Cdecl]<void*, uint, void> processor
|
delegate* unmanaged[Cdecl]<void*, uint, void> processor
|
||||||
);
|
);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,22 +2,22 @@ using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
// NOTE: Helper types to be used instead of array return types for *ToFloat functions
|
||||||
|
public unsafe struct Float3
|
||||||
{
|
{
|
||||||
// NOTE: Helper types to be used instead of array return types for *ToFloat functions
|
|
||||||
public unsafe struct Float3
|
|
||||||
{
|
|
||||||
public fixed float v[3];
|
public fixed float v[3];
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe struct Float16
|
public unsafe struct Float16
|
||||||
{
|
{
|
||||||
public fixed float v[16];
|
public fixed float v[16];
|
||||||
}
|
}
|
||||||
|
|
||||||
[SuppressUnmanagedCodeSecurity]
|
[SuppressUnmanagedCodeSecurity]
|
||||||
public static unsafe partial class Raymath
|
public static unsafe partial class Raymath
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used by DllImport to load the native library
|
/// Used by DllImport to load the native library
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -540,5 +540,4 @@ namespace Raylib_cs
|
||||||
/// <summary>Check whether two given quaternions are almost equal</summary>
|
/// <summary>Check whether two given quaternions are almost equal</summary>
|
||||||
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int QuaternionEquals(Quaternion p, Quaternion q);
|
public static extern int QuaternionEquals(Quaternion p, Quaternion q);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,11 @@ using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
[SuppressUnmanagedCodeSecurity]
|
||||||
|
public static unsafe partial class Rlgl
|
||||||
{
|
{
|
||||||
[SuppressUnmanagedCodeSecurity]
|
|
||||||
public static unsafe partial class Rlgl
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used by DllImport to load the native library
|
/// Used by DllImport to load the native library
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -803,5 +803,4 @@ namespace Raylib_cs
|
||||||
/// <summary>Load and draw a quad</summary>
|
/// <summary>Load and draw a quad</summary>
|
||||||
[DllImport(NativeLibName, EntryPoint = "rlLoadDrawQuad", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(NativeLibName, EntryPoint = "rlLoadDrawQuad", CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern void LoadDrawQuad();
|
public static extern void LoadDrawQuad();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Wave type, defines audio wave data
|
||||||
|
/// </summary>
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
public unsafe partial struct Wave
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Wave type, defines audio wave data
|
|
||||||
/// </summary>
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
|
||||||
public unsafe partial struct Wave
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of samples
|
/// Number of samples
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -34,15 +34,15 @@ namespace Raylib_cs
|
||||||
/// Buffer data pointer
|
/// Buffer data pointer
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void* Data;
|
public void* Data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Audio stream type<br/>
|
/// Audio stream type<br/>
|
||||||
/// NOTE: Useful to create custom audio streams not bound to a specific file
|
/// NOTE: Useful to create custom audio streams not bound to a specific file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct AudioStream
|
public partial struct AudioStream
|
||||||
{
|
{
|
||||||
//TODO: convert
|
//TODO: convert
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Pointer to internal data(rAudioBuffer *) used by the audio system
|
/// Pointer to internal data(rAudioBuffer *) used by the audio system
|
||||||
|
|
@ -68,14 +68,14 @@ namespace Raylib_cs
|
||||||
/// Number of channels (1-mono, 2-stereo)
|
/// Number of channels (1-mono, 2-stereo)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public uint Channels;
|
public uint Channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sound source type
|
/// Sound source type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct Sound
|
public partial struct Sound
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Audio stream
|
/// Audio stream
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -85,15 +85,15 @@ namespace Raylib_cs
|
||||||
/// Total number of frames (considering channels)
|
/// Total number of frames (considering channels)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public uint FrameCount;
|
public uint FrameCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Music stream type (audio file streaming from memory)<br/>
|
/// Music stream type (audio file streaming from memory)<br/>
|
||||||
/// NOTE: Anything longer than ~10 seconds should be streamed
|
/// NOTE: Anything longer than ~10 seconds should be streamed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public unsafe partial struct Music
|
public unsafe partial struct Music
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Audio stream
|
/// Audio stream
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -119,5 +119,4 @@ namespace Raylib_cs
|
||||||
/// Audio context data, depends on type
|
/// Audio context data, depends on type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void* CtxData;
|
public void* CtxData;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>Bounding box type</summary>
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
public partial struct BoundingBox
|
||||||
{
|
{
|
||||||
/// <summary>Bounding box type</summary>
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
|
||||||
public partial struct BoundingBox
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Minimum vertex box-corner
|
/// Minimum vertex box-corner
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -22,5 +22,4 @@ namespace Raylib_cs
|
||||||
this.Min = min;
|
this.Min = min;
|
||||||
this.Max = max;
|
this.Max = max;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Camera2D, defines position/orientation in 2d space
|
||||||
|
/// </summary>
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
public partial struct Camera2D
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Camera2D, defines position/orientation in 2d space
|
|
||||||
/// </summary>
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
|
||||||
public partial struct Camera2D
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Camera offset (displacement from target)
|
/// Camera offset (displacement from target)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -36,5 +36,4 @@ namespace Raylib_cs
|
||||||
this.Rotation = rotation;
|
this.Rotation = rotation;
|
||||||
this.Zoom = zoom;
|
this.Zoom = zoom;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,35 +1,35 @@
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Camera system modes
|
||||||
|
/// </summary>
|
||||||
|
public enum CameraMode
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Camera system modes
|
|
||||||
/// </summary>
|
|
||||||
public enum CameraMode
|
|
||||||
{
|
|
||||||
CAMERA_CUSTOM = 0,
|
CAMERA_CUSTOM = 0,
|
||||||
CAMERA_FREE,
|
CAMERA_FREE,
|
||||||
CAMERA_ORBITAL,
|
CAMERA_ORBITAL,
|
||||||
CAMERA_FIRST_PERSON,
|
CAMERA_FIRST_PERSON,
|
||||||
CAMERA_THIRD_PERSON
|
CAMERA_THIRD_PERSON
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Camera projection
|
/// Camera projection
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum CameraProjection
|
public enum CameraProjection
|
||||||
{
|
{
|
||||||
CAMERA_PERSPECTIVE = 0,
|
CAMERA_PERSPECTIVE = 0,
|
||||||
CAMERA_ORTHOGRAPHIC
|
CAMERA_ORTHOGRAPHIC
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Camera3D, defines position/orientation in 3d space
|
/// Camera3D, defines position/orientation in 3d space
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct Camera3D
|
public partial struct Camera3D
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Camera position
|
/// Camera position
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -63,5 +63,4 @@ namespace Raylib_cs
|
||||||
this.FovY = fovY;
|
this.FovY = fovY;
|
||||||
this.Projection = projection;
|
this.Projection = projection;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Color type, RGBA (32bit)
|
||||||
|
/// </summary>
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
public partial struct Color
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Color type, RGBA (32bit)
|
|
||||||
/// </summary>
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
|
||||||
public partial struct Color
|
|
||||||
{
|
|
||||||
public byte R;
|
public byte R;
|
||||||
public byte G;
|
public byte G;
|
||||||
public byte B;
|
public byte B;
|
||||||
|
|
@ -63,5 +63,4 @@ namespace Raylib_cs
|
||||||
{
|
{
|
||||||
return $"{{R:{R} G:{G} B:{B} A:{A}}}";
|
return $"{{R:{R} G:{G} B:{B} A:{A}}}";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// System config flags<br/>
|
||||||
|
/// NOTE: Every bit registers one state (use it with bit masks)<br/>
|
||||||
|
/// By default all flags are set to 0
|
||||||
|
/// </summary>
|
||||||
|
[Flags]
|
||||||
|
public enum ConfigFlags : uint
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// System config flags<br/>
|
|
||||||
/// NOTE: Every bit registers one state (use it with bit masks)<br/>
|
|
||||||
/// By default all flags are set to 0
|
|
||||||
/// </summary>
|
|
||||||
[Flags]
|
|
||||||
public enum ConfigFlags : uint
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set to try enabling V-Sync on GPU
|
/// Set to try enabling V-Sync on GPU
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -84,14 +84,14 @@ namespace Raylib_cs
|
||||||
/// Set to try enabling interlaced video format (for V3D)
|
/// Set to try enabling interlaced video format (for V3D)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FLAG_INTERLACED_HINT = 0x00010000,
|
FLAG_INTERLACED_HINT = 0x00010000,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Trace log level<br/>
|
/// Trace log level<br/>
|
||||||
/// NOTE: Organized by priority level
|
/// NOTE: Organized by priority level
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum TraceLogLevel
|
public enum TraceLogLevel
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Display all logs
|
/// Display all logs
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -131,13 +131,13 @@ namespace Raylib_cs
|
||||||
/// Disable logging
|
/// Disable logging
|
||||||
/// </summary>
|
/// </summary>
|
||||||
LOG_NONE
|
LOG_NONE
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Color blending modes (pre-defined)
|
/// Color blending modes (pre-defined)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum BlendMode
|
public enum BlendMode
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Blend textures considering alpha (default)
|
/// Blend textures considering alpha (default)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -177,5 +177,4 @@ namespace Raylib_cs
|
||||||
/// Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
|
/// Blend textures using custom rgb/alpha separate src/dst factors (use rlSetBlendFactorsSeparate())
|
||||||
/// </summary>
|
/// </summary>
|
||||||
BLEND_CUSTOM_SEPARATE
|
BLEND_CUSTOM_SEPARATE
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Font type, defines generation method
|
||||||
|
/// </summary>
|
||||||
|
public enum FontType
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Font type, defines generation method
|
|
||||||
/// </summary>
|
|
||||||
public enum FontType
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Default font generation, anti-aliased
|
/// Default font generation, anti-aliased
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -21,14 +21,14 @@ namespace Raylib_cs
|
||||||
/// SDF font generation, requires external shader
|
/// SDF font generation, requires external shader
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FONT_SDF
|
FONT_SDF
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// GlyphInfo, font characters glyphs info
|
/// GlyphInfo, font characters glyphs info
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct GlyphInfo
|
public partial struct GlyphInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Character value (Unicode)
|
/// Character value (Unicode)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -53,14 +53,14 @@ namespace Raylib_cs
|
||||||
/// Character image data
|
/// Character image data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Image Image;
|
public Image Image;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Font, font texture and GlyphInfo array data
|
/// Font, font texture and GlyphInfo array data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public unsafe partial struct Font
|
public unsafe partial struct Font
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Base size (default chars height)
|
/// Base size (default chars height)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -90,5 +90,4 @@ namespace Raylib_cs
|
||||||
/// Glyphs info data
|
/// Glyphs info data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public GlyphInfo* Glyphs;
|
public GlyphInfo* Glyphs;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Pixel formats<br/>
|
||||||
|
/// NOTE: Support depends on OpenGL version and platform
|
||||||
|
/// </summary>
|
||||||
|
public enum PixelFormat
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Pixel formats<br/>
|
|
||||||
/// NOTE: Support depends on OpenGL version and platform
|
|
||||||
/// </summary>
|
|
||||||
public enum PixelFormat
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 8 bit per pixel (no alpha)
|
/// 8 bit per pixel (no alpha)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -112,14 +112,14 @@ namespace Raylib_cs
|
||||||
/// 2 bpp
|
/// 2 bpp
|
||||||
/// </summary>
|
/// </summary>
|
||||||
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA
|
PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Image, pixel data stored in CPU memory (RAM)
|
/// Image, pixel data stored in CPU memory (RAM)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public unsafe partial struct Image
|
public unsafe partial struct Image
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Image raw data
|
/// Image raw data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -144,5 +144,4 @@ namespace Raylib_cs
|
||||||
/// Data format (PixelFormat type)
|
/// Data format (PixelFormat type)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public PixelFormat Format;
|
public PixelFormat Format;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@ using System;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Keyboard keys (US keyboard layout)<br/>
|
||||||
|
/// NOTE: Use GetKeyPressed() to allow redefining required keys for alternative layouts
|
||||||
|
/// </summary>
|
||||||
|
public enum KeyboardKey
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Keyboard keys (US keyboard layout)<br/>
|
|
||||||
/// NOTE: Use GetKeyPressed() to allow redefining required keys for alternative layouts
|
|
||||||
/// </summary>
|
|
||||||
public enum KeyboardKey
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// NULL, used for no key pressed
|
/// NULL, used for no key pressed
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -131,13 +131,13 @@ namespace Raylib_cs
|
||||||
KEY_MENU = 82,
|
KEY_MENU = 82,
|
||||||
KEY_VOLUME_UP = 24,
|
KEY_VOLUME_UP = 24,
|
||||||
KEY_VOLUME_DOWN = 25
|
KEY_VOLUME_DOWN = 25
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Mouse buttons
|
/// Mouse buttons
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum MouseButton
|
public enum MouseButton
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Mouse button left
|
/// Mouse button left
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -176,13 +176,13 @@ namespace Raylib_cs
|
||||||
MOUSE_LEFT_BUTTON = MOUSE_BUTTON_LEFT,
|
MOUSE_LEFT_BUTTON = MOUSE_BUTTON_LEFT,
|
||||||
MOUSE_RIGHT_BUTTON = MOUSE_BUTTON_RIGHT,
|
MOUSE_RIGHT_BUTTON = MOUSE_BUTTON_RIGHT,
|
||||||
MOUSE_MIDDLE_BUTTON = MOUSE_BUTTON_MIDDLE,
|
MOUSE_MIDDLE_BUTTON = MOUSE_BUTTON_MIDDLE,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Mouse cursor
|
/// Mouse cursor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum MouseCursor
|
public enum MouseCursor
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Default pointer shape
|
/// Default pointer shape
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -237,11 +237,11 @@ namespace Raylib_cs
|
||||||
/// The operation-not-allowed shape
|
/// The operation-not-allowed shape
|
||||||
/// </summary>
|
/// </summary>
|
||||||
MOUSE_CURSOR_NOT_ALLOWED = 10
|
MOUSE_CURSOR_NOT_ALLOWED = 10
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Gamepad axis</summary>
|
/// <summary>Gamepad axis</summary>
|
||||||
public enum GamepadAxis
|
public enum GamepadAxis
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gamepad left stick X axis
|
/// Gamepad left stick X axis
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -271,13 +271,13 @@ namespace Raylib_cs
|
||||||
/// Gamepad back trigger right, pressure level: [1..-1]
|
/// Gamepad back trigger right, pressure level: [1..-1]
|
||||||
/// </summary>
|
/// </summary>
|
||||||
GAMEPAD_AXIS_RIGHT_TRIGGER = 5
|
GAMEPAD_AXIS_RIGHT_TRIGGER = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gamepad buttons
|
/// Gamepad buttons
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum GamepadButton
|
public enum GamepadButton
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unknown button, just for error checking
|
/// Unknown button, just for error checking
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -367,15 +367,15 @@ namespace Raylib_cs
|
||||||
/// Gamepad joystick pressed button right
|
/// Gamepad joystick pressed button right
|
||||||
/// </summary>
|
/// </summary>
|
||||||
GAMEPAD_BUTTON_RIGHT_THUMB
|
GAMEPAD_BUTTON_RIGHT_THUMB
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gesture
|
/// Gesture
|
||||||
/// NOTE: It could be used as flags to enable only some gestures
|
/// NOTE: It could be used as flags to enable only some gestures
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum Gesture : uint
|
public enum Gesture : uint
|
||||||
{
|
{
|
||||||
GESTURE_NONE = 0,
|
GESTURE_NONE = 0,
|
||||||
GESTURE_TAP = 1,
|
GESTURE_TAP = 1,
|
||||||
GESTURE_DOUBLETAP = 2,
|
GESTURE_DOUBLETAP = 2,
|
||||||
|
|
@ -387,14 +387,14 @@ namespace Raylib_cs
|
||||||
GESTURE_SWIPE_DOWN = 128,
|
GESTURE_SWIPE_DOWN = 128,
|
||||||
GESTURE_PINCH_IN = 256,
|
GESTURE_PINCH_IN = 256,
|
||||||
GESTURE_PINCH_OUT = 512
|
GESTURE_PINCH_OUT = 512
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Head-Mounted-Display device parameters
|
/// Head-Mounted-Display device parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public unsafe partial struct VrDeviceInfo
|
public unsafe partial struct VrDeviceInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// HMD horizontal resolution in pixels
|
/// HMD horizontal resolution in pixels
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -444,14 +444,14 @@ namespace Raylib_cs
|
||||||
/// HMD chromatic aberration correction parameters
|
/// HMD chromatic aberration correction parameters
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public fixed float ChromaAbCorrection[4];
|
public fixed float ChromaAbCorrection[4];
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// VR Stereo rendering configuration for simulator
|
/// VR Stereo rendering configuration for simulator
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct VrStereoConfig
|
public partial struct VrStereoConfig
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// VR projection matrices (per eye)
|
/// VR projection matrices (per eye)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -501,5 +501,4 @@ namespace Raylib_cs
|
||||||
/// VR distortion scale in
|
/// VR distortion scale in
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector2 ScaleIn;
|
public Vector2 ScaleIn;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
internal readonly struct Native
|
||||||
{
|
{
|
||||||
internal readonly struct Native
|
|
||||||
{
|
|
||||||
internal const string Msvcrt = "msvcrt";
|
internal const string Msvcrt = "msvcrt";
|
||||||
internal const string Libc = "libc";
|
internal const string Libc = "libc";
|
||||||
internal const string LibSystem = "libSystem";
|
internal const string LibSystem = "libSystem";
|
||||||
|
|
@ -26,22 +26,22 @@ namespace Raylib_cs
|
||||||
|
|
||||||
[DllImport(Msvcrt, EntryPoint = "vsnprintf", CallingConvention = CallingConvention.Cdecl)]
|
[DllImport(Msvcrt, EntryPoint = "vsnprintf", CallingConvention = CallingConvention.Cdecl)]
|
||||||
public static extern int VsnPrintfWindows(IntPtr buffer, UIntPtr size, IntPtr format, IntPtr args);
|
public static extern int VsnPrintfWindows(IntPtr buffer, UIntPtr size, IntPtr format, IntPtr args);
|
||||||
}
|
}
|
||||||
|
|
||||||
[StructLayout(LayoutKind.Sequential, Pack = 4)]
|
[StructLayout(LayoutKind.Sequential, Pack = 4)]
|
||||||
struct VaListLinuxX64
|
struct VaListLinuxX64
|
||||||
{
|
{
|
||||||
uint _gpOffset;
|
uint _gpOffset;
|
||||||
uint _fpOffset;
|
uint _fpOffset;
|
||||||
IntPtr _overflowArgArea;
|
IntPtr _overflowArgArea;
|
||||||
IntPtr _regSaveArea;
|
IntPtr _regSaveArea;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Logging workaround for formatting strings from native code
|
/// Logging workaround for formatting strings from native code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static unsafe class Logging
|
public static unsafe class Logging
|
||||||
{
|
{
|
||||||
[UnmanagedCallersOnly(CallConvs = new[] { typeof(System.Runtime.CompilerServices.CallConvCdecl) })]
|
[UnmanagedCallersOnly(CallConvs = new[] { typeof(System.Runtime.CompilerServices.CallConvCdecl) })]
|
||||||
public static unsafe void LogConsole(int msgType, sbyte* text, sbyte* args)
|
public static unsafe void LogConsole(int msgType, sbyte* text, sbyte* args)
|
||||||
{
|
{
|
||||||
|
|
@ -160,5 +160,4 @@ namespace Raylib_cs
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Material map index
|
||||||
|
/// </summary>
|
||||||
|
public enum MaterialMapIndex
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Material map index
|
|
||||||
/// </summary>
|
|
||||||
public enum MaterialMapIndex
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// NOTE: Same as MATERIAL_MAP_DIFFUSE
|
/// NOTE: Same as MATERIAL_MAP_DIFFUSE
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -42,14 +42,14 @@ namespace Raylib_cs
|
||||||
|
|
||||||
MATERIAL_MAP_DIFFUSE = MATERIAL_MAP_ALBEDO,
|
MATERIAL_MAP_DIFFUSE = MATERIAL_MAP_ALBEDO,
|
||||||
MATERIAL_MAP_SPECULAR = MATERIAL_MAP_METALNESS,
|
MATERIAL_MAP_SPECULAR = MATERIAL_MAP_METALNESS,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Material texture map
|
/// Material texture map
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct MaterialMap
|
public partial struct MaterialMap
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Material map texture
|
/// Material map texture
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -64,14 +64,14 @@ namespace Raylib_cs
|
||||||
/// Material map value
|
/// Material map value
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float Value;
|
public float Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Material type (generic)
|
/// Material type (generic)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public unsafe partial struct Material
|
public unsafe partial struct Material
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Material shader
|
/// Material shader
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -87,5 +87,4 @@ namespace Raylib_cs
|
||||||
/// Material generic parameters (if required)
|
/// Material generic parameters (if required)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public fixed float Param[4];
|
public fixed float Param[4];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,14 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Vertex data definning a mesh<br/>
|
||||||
|
/// NOTE: Data stored in CPU memory (and GPU)
|
||||||
|
/// </summary>
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
public unsafe partial struct Mesh
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Vertex data definning a mesh<br/>
|
|
||||||
/// NOTE: Data stored in CPU memory (and GPU)
|
|
||||||
/// </summary>
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
|
||||||
public unsafe partial struct Mesh
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of vertices stored in arrays
|
/// Number of vertices stored in arrays
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -95,5 +95,4 @@ namespace Raylib_cs
|
||||||
public uint* VboId;
|
public uint* VboId;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,14 @@ using System;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bone information
|
||||||
|
/// </summary>
|
||||||
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
|
public unsafe partial struct BoneInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Bone information
|
|
||||||
/// </summary>
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
|
||||||
public unsafe partial struct BoneInfo
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Bone name (char[32])
|
/// Bone name (char[32])
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -19,14 +19,14 @@ namespace Raylib_cs
|
||||||
/// Bone parent
|
/// Bone parent
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int Parent;
|
public int Parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Model type
|
/// Model type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public unsafe partial struct Model
|
public unsafe partial struct Model
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Local transform matrix
|
/// Local transform matrix
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -73,14 +73,14 @@ namespace Raylib_cs
|
||||||
/// Bones base transformation (pose, Transform *)
|
/// Bones base transformation (pose, Transform *)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Transform* BindPose;
|
public Transform* BindPose;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Model animation
|
/// Model animation
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public readonly unsafe partial struct ModelAnimation
|
public readonly unsafe partial struct ModelAnimation
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Number of bones
|
/// Number of bones
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -126,10 +126,10 @@ namespace Raylib_cs
|
||||||
this._boneCount = boneCount;
|
this._boneCount = boneCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public unsafe struct FramePoses
|
public unsafe struct FramePoses
|
||||||
{
|
{
|
||||||
readonly Transform* _poses;
|
readonly Transform* _poses;
|
||||||
|
|
||||||
readonly int _count;
|
readonly int _count;
|
||||||
|
|
@ -141,5 +141,4 @@ namespace Raylib_cs
|
||||||
this._poses = poses;
|
this._poses = poses;
|
||||||
this._count = count;
|
this._count = count;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// N-patch layout
|
||||||
|
/// </summary>
|
||||||
|
public enum NPatchLayout
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// N-patch layout
|
|
||||||
/// </summary>
|
|
||||||
public enum NPatchLayout
|
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Npatch defined by 3x3 tiles
|
/// Npatch defined by 3x3 tiles
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -21,14 +21,14 @@ namespace Raylib_cs
|
||||||
/// Npatch defined by 3x1 tiles
|
/// Npatch defined by 3x1 tiles
|
||||||
/// </summary>
|
/// </summary>
|
||||||
NPATCH_THREE_PATCH_HORIZONTAL
|
NPATCH_THREE_PATCH_HORIZONTAL
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// N-Patch layout info
|
/// N-Patch layout info
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct NPatchInfo
|
public partial struct NPatchInfo
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Texture source rectangle
|
/// Texture source rectangle
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
@ -58,5 +58,4 @@ namespace Raylib_cs
|
||||||
/// Layout of the n-patch: 3x3, 1x3 or 3x1
|
/// Layout of the n-patch: 3x3, 1x3 or 3x1
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public NPatchLayout Layout;
|
public NPatchLayout Layout;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue