Watch
2
0
Fork
You've already forked raylib-cs
0

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:
ChrisDill 2019-10-27 14:13:53 +00:00
commit 428f0abcc9
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)]