mirror of
https://github.com/raylib-cs/raylib-cs
synced 2025-04-17 15:04:44 -04:00
Fixed trailing whitespace
- Removed trailing whitespace from bindings and examples.
This commit is contained in:
parent
01ec64945c
commit
527bf58521
@ -1,9 +1,4 @@
|
||||
/**********************************************************************************************
|
||||
*
|
||||
* Raylib easings bindings
|
||||
* Original - https://github.com/raysan5/raylib/blob/master/src/easings.h
|
||||
*
|
||||
**********************************************************************************************/
|
||||
// Easings - https://github.com/raysan5/raylib/blob/master/src/easings.h
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
@ -108,6 +103,5 @@ namespace Raylib
|
||||
public static extern float EaseElasticInOut(float t, float b, float c, float d);
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,4 @@
|
||||
/**********************************************************************************************
|
||||
*
|
||||
* Physac
|
||||
* Original -https://github.com/raysan5/raylib/blob/master/src/physac.h
|
||||
*
|
||||
**********************************************************************************************/
|
||||
// Physac - https://github.com/raysan5/raylib/blob/master/src/physac.h
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
@ -37,11 +32,13 @@ namespace Raylib
|
||||
{
|
||||
public uint vertexCount; // Current used vertex and normals count
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = Raylib.PHYSAC_MAX_VERTICES)]
|
||||
public Vector2[] positions; // Polygon vertex positions vectors
|
||||
//[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = Raylib.PHYSAC_MAX_VERTICES)]
|
||||
//public Vector2[] positions; // Polygon vertex positions vectors
|
||||
public unsafe Vector2* positions;
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = Raylib.PHYSAC_MAX_VERTICES)]
|
||||
public Vector2[] normals; // Polygon vertex normals vectors
|
||||
//[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = Raylib.PHYSAC_MAX_VERTICES)]
|
||||
//public Vector2[] normals; // Polygon vertex normals vectors
|
||||
public unsafe Vector2* normals;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
||||
@ -79,7 +76,7 @@ namespace Raylib
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
|
||||
public struct PhysicsManifoldData
|
||||
public unsafe struct PhysicsManifoldData
|
||||
{
|
||||
public uint id; // Reference unique identifier
|
||||
public PhysicsBodyData bodyA; // Manifold first physics body reference
|
||||
@ -87,8 +84,9 @@ namespace Raylib
|
||||
public float penetration; // Depth of penetration from collision
|
||||
public Vector2 normal; // Normal direction vector from 'a' to 'b'
|
||||
|
||||
[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 2)]
|
||||
public Vector2[] contacts; // Points of contact during collision
|
||||
//[MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.Struct, SizeConst = 2)]
|
||||
// public fixed Vector2[] contacts; // Points of contact during collision
|
||||
public unsafe Vector2* contacts;
|
||||
|
||||
public uint contactsCount; // Current collision number of contacts
|
||||
public float restitution; // Mixed restitution during collision
|
||||
@ -126,6 +124,10 @@ namespace Raylib
|
||||
[DllImport(nativeLibName,CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void InitPhysics();
|
||||
|
||||
// Run physics step, to be used if PHYSICS_NO_THREADS is set in your main loop
|
||||
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern void RunPhysicsStep();
|
||||
|
||||
// Returns true if physics thread is currently enabled
|
||||
[DllImport(nativeLibName,CallingConvention = CallingConvention.Cdecl)]
|
||||
public static extern bool IsPhysicsEnabled();
|
||||
@ -220,6 +222,5 @@ namespace Raylib
|
||||
public static extern void ClosePhysics();
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -1,9 +1,4 @@
|
||||
/**********************************************************************************************
|
||||
*
|
||||
* Raygui
|
||||
* Original - https://github.com/raysan5/raygui/blob/master/src/raygui.h
|
||||
*
|
||||
**********************************************************************************************/
|
||||
// Raygui - https://github.com/raysan5/raygui/blob/master/src/raygui.h
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
@ -1,9 +1,5 @@
|
||||
/**********************************************************************************************
|
||||
*
|
||||
* Raylib - A simple and easy-to-use library to learn videogames programming (www.raylib.com)
|
||||
* Original - https://github.com/raysan5/raylib/blob/master/src/raylib.h
|
||||
*
|
||||
**********************************************************************************************/
|
||||
// Raylib - https://github.com/raysan5/raylib/blob/master/src/raylib.h
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Runtime.InteropServices;
|
||||
|
@ -1,9 +1,4 @@
|
||||
/**********************************************************************************************
|
||||
*
|
||||
* Raymath v1.2 bindings - Math functions to work with Vector3, Matrix and Quaternions
|
||||
* Original - https://github.com/raysan5/raylib/blob/master/src/raymath.h
|
||||
*
|
||||
**********************************************************************************************/
|
||||
// Raymath - https://github.com/raysan5/raylib/blob/master/src/raymath.h
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
@ -1,9 +1,4 @@
|
||||
/**********************************************************************************************
|
||||
*
|
||||
* Rlgl
|
||||
* Original - https://github.com/raysan5/raylib/blob/master/src/rlgl.h
|
||||
*
|
||||
**********************************************************************************************/
|
||||
// Rlgl - https://github.com/raysan5/raylib/blob/master/src/rlgl.h
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
@ -28,6 +23,5 @@ namespace Raylib
|
||||
#region Raylib-cs Functions
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,6 @@ public partial class audio_module_playing
|
||||
*
|
||||
********************************************************************************************/
|
||||
|
||||
|
||||
public const int MAX_CIRCLES = 64;
|
||||
|
||||
struct CircleWave
|
||||
|
Loading…
x
Reference in New Issue
Block a user