mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-04-05 11:19:39 -04:00
Add .editorconfig and apply formatting
This commit is contained in:
parent
d1f0b9fd91
commit
696955463f
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,8 +30,8 @@ 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>()
|
||||||
@ -67,4 +67,3 @@ namespace Raylib_cs.Tests
|
|||||||
public static readonly bool VALUE = IsBlittable(typeof(T));
|
public static readonly bool VALUE = IsBlittable(typeof(T));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
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
|
||||||
@ -43,4 +43,3 @@ namespace Raylib_cs.Tests
|
|||||||
CheckType<RenderBatch>();
|
CheckType<RenderBatch>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -3,8 +3,8 @@ using System.Numerics;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
[SuppressUnmanagedCodeSecurity]
|
[SuppressUnmanagedCodeSecurity]
|
||||||
public static unsafe partial class Raylib
|
public static unsafe partial class Raylib
|
||||||
{
|
{
|
||||||
@ -2683,4 +2683,3 @@ namespace Raylib_cs
|
|||||||
delegate* unmanaged[Cdecl]<void*, uint, void> processor
|
delegate* unmanaged[Cdecl]<void*, uint, void> processor
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -2,8 +2,8 @@ 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
|
// NOTE: Helper types to be used instead of array return types for *ToFloat functions
|
||||||
public unsafe struct Float3
|
public unsafe struct Float3
|
||||||
{
|
{
|
||||||
@ -541,4 +541,3 @@ namespace Raylib_cs
|
|||||||
[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,8 +2,8 @@ using System.Numerics;
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
[SuppressUnmanagedCodeSecurity]
|
[SuppressUnmanagedCodeSecurity]
|
||||||
public static unsafe partial class Rlgl
|
public static unsafe partial class Rlgl
|
||||||
{
|
{
|
||||||
@ -804,4 +804,3 @@ namespace Raylib_cs
|
|||||||
[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,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Wave type, defines audio wave data
|
/// Wave type, defines audio wave data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -120,4 +120,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void* CtxData;
|
public void* CtxData;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
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>
|
/// <summary>Bounding box type</summary>
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public partial struct BoundingBox
|
public partial struct BoundingBox
|
||||||
@ -23,4 +23,3 @@ namespace Raylib_cs
|
|||||||
this.Max = max;
|
this.Max = max;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Camera2D, defines position/orientation in 2d space
|
/// Camera2D, defines position/orientation in 2d space
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -37,4 +37,3 @@ namespace Raylib_cs
|
|||||||
this.Zoom = zoom;
|
this.Zoom = zoom;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Camera system modes
|
/// Camera system modes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -64,4 +64,3 @@ namespace Raylib_cs
|
|||||||
this.Projection = projection;
|
this.Projection = projection;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Color type, RGBA (32bit)
|
/// Color type, RGBA (32bit)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -64,4 +64,3 @@ namespace Raylib_cs
|
|||||||
return $"{{R:{R} G:{G} B:{B} A:{A}}}";
|
return $"{{R:{R} G:{G} B:{B} A:{A}}}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// System config flags<br/>
|
/// System config flags<br/>
|
||||||
/// NOTE: Every bit registers one state (use it with bit masks)<br/>
|
/// NOTE: Every bit registers one state (use it with bit masks)<br/>
|
||||||
@ -178,4 +178,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
BLEND_CUSTOM_SEPARATE
|
BLEND_CUSTOM_SEPARATE
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Font type, defines generation method
|
/// Font type, defines generation method
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -91,4 +91,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public GlyphInfo* Glyphs;
|
public GlyphInfo* Glyphs;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Pixel formats<br/>
|
/// Pixel formats<br/>
|
||||||
/// NOTE: Support depends on OpenGL version and platform
|
/// NOTE: Support depends on OpenGL version and platform
|
||||||
@ -145,4 +145,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public PixelFormat Format;
|
public PixelFormat Format;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -2,8 +2,8 @@ using System;
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Keyboard keys (US keyboard layout)<br/>
|
/// Keyboard keys (US keyboard layout)<br/>
|
||||||
/// NOTE: Use GetKeyPressed() to allow redefining required keys for alternative layouts
|
/// NOTE: Use GetKeyPressed() to allow redefining required keys for alternative layouts
|
||||||
@ -502,4 +502,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector2 ScaleIn;
|
public Vector2 ScaleIn;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
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";
|
||||||
@ -161,4 +161,3 @@ namespace Raylib_cs
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Material map index
|
/// Material map index
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -88,4 +88,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public fixed float Param[4];
|
public fixed float Param[4];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Vertex data definning a mesh<br/>
|
/// Vertex data definning a mesh<br/>
|
||||||
/// NOTE: Data stored in CPU memory (and GPU)
|
/// NOTE: Data stored in CPU memory (and GPU)
|
||||||
@ -96,4 +96,3 @@ namespace Raylib_cs
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -2,8 +2,8 @@ using System;
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Bone information
|
/// Bone information
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -142,4 +142,3 @@ namespace Raylib_cs
|
|||||||
this._count = count;
|
this._count = count;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// N-patch layout
|
/// N-patch layout
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -59,4 +59,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public NPatchLayout Layout;
|
public NPatchLayout Layout;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ray, ray for raycasting
|
/// Ray, ray for raycasting
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -52,4 +52,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 Normal;
|
public Vector3 Normal;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -2,8 +2,8 @@ using System;
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
public static unsafe partial class Raylib
|
public static unsafe partial class Raylib
|
||||||
{
|
{
|
||||||
/// <summary>Initialize window and OpenGL context</summary>
|
/// <summary>Initialize window and OpenGL context</summary>
|
||||||
@ -1103,4 +1103,3 @@ namespace Raylib_cs
|
|||||||
model.Materials[materialIndex].Shader = shader;
|
model.Materials[materialIndex].Shader = shader;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Rectangle type
|
/// Rectangle type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -26,4 +26,3 @@ namespace Raylib_cs
|
|||||||
return $"{{X:{X} Y:{Y} Width:{Width} Height:{Height}}}";
|
return $"{{X:{X} Y:{Y} Width:{Width} Height:{Height}}}";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// RenderBatch type
|
/// RenderBatch type
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -268,4 +268,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
COMPUTE = 0x91b9
|
COMPUTE = 0x91b9
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// RenderTexture2D type, for texture rendering
|
/// RenderTexture2D type, for texture rendering
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -23,4 +23,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Texture2D Depth;
|
public Texture2D Depth;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Shader location index
|
/// Shader location index
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -81,4 +81,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int* Locs;
|
public int* Locs;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Texture parameters: filter mode<br/>
|
/// Texture parameters: filter mode<br/>
|
||||||
/// NOTE 1: Filtering considers mipmaps if available in the texture<br/>
|
/// NOTE 1: Filtering considers mipmaps if available in the texture<br/>
|
||||||
@ -134,4 +134,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public PixelFormat Format;
|
public PixelFormat Format;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Transform, vectex transformation data
|
/// Transform, vectex transformation data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -24,4 +24,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public Vector3 Scale;
|
public Vector3 Scale;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts text to a Ansi buffer for passing to native code
|
/// Converts text to a Ansi buffer for passing to native code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -33,4 +33,3 @@ namespace Raylib_cs
|
|||||||
return new AnsiBuffer(text);
|
return new AnsiBuffer(text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
[StructLayout(LayoutKind.Sequential)]
|
[StructLayout(LayoutKind.Sequential)]
|
||||||
public readonly struct CBool
|
public readonly struct CBool
|
||||||
{
|
{
|
||||||
@ -20,7 +20,10 @@ namespace Raylib_cs
|
|||||||
*
|
*
|
||||||
* 'value' is visible and constructable (if necessary), but impossible to modify or access.
|
* 'value' is visible and constructable (if necessary), but impossible to modify or access.
|
||||||
*/
|
*/
|
||||||
public sbyte Value { init; private get; }
|
public sbyte Value
|
||||||
|
{
|
||||||
|
init; private get;
|
||||||
|
}
|
||||||
|
|
||||||
// Constructors for easier usage.
|
// Constructors for easier usage.
|
||||||
public CBool(bool value)
|
public CBool(bool value)
|
||||||
@ -84,4 +87,3 @@ namespace Raylib_cs
|
|||||||
return ((bool)this).ToString();
|
return ((bool)this).ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// File path list
|
/// File path list
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -23,4 +23,3 @@ namespace Raylib_cs
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public byte** Paths;
|
public byte** Paths;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace Raylib_cs
|
namespace Raylib_cs;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Converts text to a UTF8 buffer for passing to native code
|
/// Converts text to a UTF8 buffer for passing to native code
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -60,4 +60,3 @@ namespace Raylib_cs
|
|||||||
return Encoding.UTF8.GetBytes(text);
|
return Encoding.UTF8.GetBytes(text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user