diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs index a212ef3..3e6c0e4 100644 --- a/Raylib-cs/interop/Raylib.cs +++ b/Raylib-cs/interop/Raylib.cs @@ -845,9 +845,11 @@ namespace Raylib_cs // Basic Shapes Drawing Functions (Module: shapes) //------------------------------------------------------------------------------------ - /// Set texture and rectangle to be used on shapes drawing
+ /// + /// Set texture and rectangle to be used on shapes drawing
/// NOTE: It can be useful when using basic shapes and one single font.
- /// Defining a white rectangle would allow drawing everything in a single draw call.
+ /// Defining a white rectangle would allow drawing everything in a single draw call. + ///
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void SetShapesTexture(Texture2D texture, Rectangle source); @@ -1469,8 +1471,7 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Font LoadFontFromImage(Image image, Color key, int firstChar); - /// Load font from memory buffer, fileType refers to extension: i.e. "ttf"
- /// fileData refers to const unsigned char *
+ /// Load font from memory buffer, fileType refers to extension: i.e. "ttf" [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Font LoadFontFromMemory(sbyte* fileType, byte* fileData, int dataSize, int fontSize, int* fontChars, int glyphCount); @@ -1976,8 +1977,7 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Wave LoadWave(sbyte* fileName); - /// Load wave from memory buffer, fileType refers to extension: i.e. "wav"
- /// fileData refers to a const unsigned char *
+ /// Load wave from memory buffer, fileType refers to extension: i.e. "wav" [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern Wave LoadWaveFromMemory(sbyte* fileType, byte* fileData, int dataSize); @@ -2068,12 +2068,10 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void WaveFormat(Wave* wave, int sampleRate, int sampleSize, int channels); - //TODO: Span /// Get samples data from wave as a floats array [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern float* LoadWaveSamples(Wave wave); - //TODO: Span /// Unload samples data loaded with LoadWaveSamples() [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void UnloadWaveSamples(float* samples); @@ -2196,13 +2194,15 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void SetAudioStreamBufferSizeDefault(int size); - // Audio thread callback to request new data + /// Audio thread callback to request new data [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void SetAudioStreamCallback(AudioStream stream, delegate* unmanaged[Cdecl] callback); + /// Attach audio stream processor to stream [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void AttachAudioStreamProcessor(AudioStream stream, delegate* unmanaged[Cdecl] processor); + /// Detach audio stream processor from stream [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void DetachAudioStreamProcessor(AudioStream stream, delegate* unmanaged[Cdecl] processor); } diff --git a/Raylib-cs/interop/Raymath.cs b/Raylib-cs/interop/Raymath.cs index e61634e..22a050b 100644 --- a/Raylib-cs/interop/Raymath.cs +++ b/Raylib-cs/interop/Raymath.cs @@ -512,6 +512,6 @@ namespace Raylib_cs /// Check whether two given quaternions are almost equal [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] - public static extern Quaternion QuaternionEquals(Quaternion p, Quaternion q); + public static extern int QuaternionEquals(Quaternion p, Quaternion q); } } diff --git a/Raylib-cs/interop/Rlgl.cs b/Raylib-cs/interop/Rlgl.cs index 4f586d9..5413c39 100644 --- a/Raylib-cs/interop/Rlgl.cs +++ b/Raylib-cs/interop/Rlgl.cs @@ -64,6 +64,7 @@ namespace Raylib_cs [DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] public static extern void rlMatrixMode(int mode); + /// public static void rlMatrixMode(MatrixMode mode) { rlMatrixMode((int)mode); @@ -94,8 +95,7 @@ namespace Raylib_cs public static extern void rlScalef(float x, float y, float z); /// - /// Multiply the current matrix by another matrix - ///
+ /// Multiply the current matrix by another matrix
/// Current Matrix can be set via ///
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)] diff --git a/Raylib-cs/types/Input.cs b/Raylib-cs/types/Input.cs index 0ae0413..4bf82d5 100644 --- a/Raylib-cs/types/Input.cs +++ b/Raylib-cs/types/Input.cs @@ -279,7 +279,7 @@ namespace Raylib_cs public enum GamepadButton { /// - /// This is here just for error checking + /// Unknown button, just for error checking /// GAMEPAD_BUTTON_UNKNOWN = 0, @@ -323,41 +323,54 @@ namespace Raylib_cs /// GAMEPAD_BUTTON_RIGHT_FACE_LEFT, - // Triggers + /// + /// Gamepad top/back trigger left (first), it could be a trailing button + /// GAMEPAD_BUTTON_LEFT_TRIGGER_1, - GAMEPAD_BUTTON_LEFT_TRIGGER_2, - GAMEPAD_BUTTON_RIGHT_TRIGGER_1, - GAMEPAD_BUTTON_RIGHT_TRIGGER_2, - - // These are buttons in the center of the gamepad /// - /// PS3 Select + /// Gamepad top/back trigger left (second), it could be a trailing button + /// + GAMEPAD_BUTTON_LEFT_TRIGGER_2, + + /// + /// Gamepad top/back trigger right (first), it could be a trailing button + /// + GAMEPAD_BUTTON_RIGHT_TRIGGER_1, + + /// + /// Gamepad top/back trigger right (second), it could be a trailing button + /// + GAMEPAD_BUTTON_RIGHT_TRIGGER_2, + + /// + /// Gamepad center buttons, left one (i.e. PS3: Select) /// GAMEPAD_BUTTON_MIDDLE_LEFT, /// - /// PS Button/XBOX Button + /// Gamepad center buttons, middle one (i.e. PS3: PS, Xbox: XBOX) /// GAMEPAD_BUTTON_MIDDLE, /// - /// PS3 Start + /// Gamepad center buttons, right one (i.e. PS3: Start) /// GAMEPAD_BUTTON_MIDDLE_RIGHT, /// - /// Left joystick press button + /// Gamepad joystick pressed button left /// GAMEPAD_BUTTON_LEFT_THUMB, /// - /// Right joystick press button + /// Gamepad joystick pressed button right /// GAMEPAD_BUTTON_RIGHT_THUMB } - /// Gesture + /// + /// Gesture /// NOTE: It could be used as flags to enable only some gestures /// [Flags]