2
0
mirror of https://github.com/raylib-cs/raylib-cs synced 2025-07-10 19:50:28 -04:00

Removed Extensions.cs and moving some of the functions back into modules.

- I originally made extensions to separate things to help with code generation. Although since they are fairly simple I have now changed my mind and moved them back into their modules.

- Removed partial from raylib structs. This allowed extending them but I think it makes it harder to understand raylib types from looking at it.

- Minor constructors additions and changes.
This commit is contained in:
2019-10-27 14:13:53 +00:00
parent 0911c3ab88
commit 835f4ba6e9
3 changed files with 455 additions and 577 deletions

View File

@ -150,7 +150,7 @@ namespace Raylib
// Creates a new circle physics body with generic parameters
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr CreatePhysicsBodyCircle(Vector2 pos, float radius, float density);
public static extern IntPtr CreatePhysicsBodyCircle(Vector2 pos, float radius, float density);
// Creates a new rectangle physics body with generic parameters
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
@ -178,7 +178,7 @@ namespace Raylib
// Returns a physics body of the bodies pool at a specific index
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern IntPtr GetPhysicsBodyImport(int index);
public static extern IntPtr GetPhysicsBody(int index);
// Returns the physics body shape type (PHYSICS_CIRCLE or PHYSICS_POLYGON)
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]