2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-04-05 11:19:39 -04:00

Bindings cleanup

- Replaced tabs with 4 spaces
- Added comments to Raylib.cs
This commit is contained in:
ChrisDill 2018-10-23 11:57:13 +01:00
parent ec4f2f0472
commit 167a41f20d
5 changed files with 898 additions and 818 deletions

View File

@ -39,7 +39,7 @@ namespace Raylib
[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[] normals; // Polygon vertex normals vectors
}
@ -86,7 +86,7 @@ namespace Raylib
public PhysicsBodyData bodyB; // Manifold second physics body reference
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

View File

@ -188,14 +188,14 @@ namespace Raylib
LISTVIEW_TEXT_COLOR_DISABLED
}
// GUI controls state
public enum GuiControlState
{
DISABLED = 0,
NORMAL,
FOCUSED,
PRESSED
}
// GUI controls state
public enum GuiControlState
{
DISABLED = 0,
NORMAL,
FOCUSED,
PRESSED
}
#endregion
@ -203,7 +203,7 @@ namespace Raylib
{
#region Raylib-cs Variables
#endregion
#endregion
#region Raylib-cs Functions

File diff suppressed because it is too large Load Diff

View File

@ -457,7 +457,7 @@ namespace Raylib
// Calculate vector length
[DllImport(nativeLibName,CallingConvention = CallingConvention.Cdecl)]
public static extern float Vector3Length(Vector3 v);
public static extern float Vector3Length(Vector3 v);
// Calculate two vectors dot product
[DllImport(nativeLibName,CallingConvention = CallingConvention.Cdecl)]
@ -675,7 +675,7 @@ namespace Raylib
[DllImport(nativeLibName,CallingConvention = CallingConvention.Cdecl)]
public static extern Quaternion QuaternionTransform(Quaternion q, Matrix mat);
#endregion
#endregion
}
}

View File

@ -23,7 +23,7 @@ namespace Raylib
{
#region Raylib-cs Variables
#endregion
#endregion
#region Raylib-cs Functions