diff --git a/Raylib-cs/interop/Raylib.cs b/Raylib-cs/interop/Raylib.cs
index eeaec0d..9a0e6d3 100644
--- a/Raylib-cs/interop/Raylib.cs
+++ b/Raylib-cs/interop/Raylib.cs
@@ -82,7 +82,7 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void ClearWindowState(ConfigFlags flag);
- /// Toggle fullscreen mode (only PLATFORM_DESKTOP)
+ /// Toggle window state: fullscreen/windowed (only PLATFORM_DESKTOP)
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void ToggleFullscreen();
@@ -146,19 +146,19 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 GetMonitorPosition(int monitor);
- /// Get primary monitor width
+ /// Get specified monitor width
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetMonitorWidth(int monitor);
- /// Get primary monitor height
+ /// Get specified monitor height
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetMonitorHeight(int monitor);
- /// Get primary monitor physical width in millimetres
+ /// Get specified monitor physical width in millimetres
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetMonitorPhysicalWidth(int monitor);
- /// Get primary monitor physical height in millimetres
+ /// Get specified monitor physical height in millimetres
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetMonitorPhysicalHeight(int monitor);
@@ -174,7 +174,7 @@ namespace Raylib_cs
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector2 GetWindowScaleDPI();
- /// Get the human-readable, UTF-8 encoded name of the primary monitor
+ /// Get the human-readable, UTF-8 encoded name of the specified monitor
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern sbyte* GetMonitorName(int monitor);
@@ -1049,11 +1049,11 @@ namespace Raylib_cs
/// Export image data to file
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern void ExportImage(Image image, sbyte* fileName);
+ public static extern CBool ExportImage(Image image, sbyte* fileName);
/// Export image as code file defining an array of bytes
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern void ExportImageAsCode(Image image, sbyte* fileName);
+ public static extern CBool ExportImageAsCode(Image image, sbyte* fileName);
// Image generation functions
@@ -1370,31 +1370,31 @@ namespace Raylib_cs
// Color/pixel related functions
- /// Returns hexadecimal value for a Color
+ /// Get hexadecimal value for a Color
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern int ColorToInt(Color color);
- /// Returns color normalized as float [0..1]
+ /// Get color normalized as float [0..1]
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector4 ColorNormalize(Color color);
- /// Returns color from normalized values [0..1]
+ /// Get color from normalized values [0..1]
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Color ColorFromNormalized(Vector4 normalized);
- /// Returns HSV values for a Color, hue [0..360], saturation/value [0..1]
+ /// Get HSV values for a Color, hue [0..360], saturation/value [0..1]
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Vector3 ColorToHSV(Color color);
- /// Returns a Color from HSV values, hue [0..360], saturation/value [0..1]
+ /// Get a Color from HSV values, hue [0..360], saturation/value [0..1]
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Color ColorFromHSV(float hue, float saturation, float value);
- /// Returns color with alpha applied, alpha goes from 0.0f to 1.0f
+ /// Get color with alpha applied, alpha goes from 0.0f to 1.0f
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Color ColorAlpha(Color color, float alpha);
- /// Returns src alpha-blended into dst color with tint
+ /// Get src alpha-blended into dst color with tint
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern Color ColorAlphaBlend(Color dst, Color src, Color tint);
@@ -1973,11 +1973,11 @@ namespace Raylib_cs
/// Export wave data to file
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern void ExportWave(Wave wave, sbyte* fileName);
+ public static extern CBool ExportWave(Wave wave, sbyte* fileName);
/// Export wave sample data to code (.h)
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern void ExportWaveAsCode(Wave wave, sbyte* fileName);
+ public static extern CBool ExportWaveAsCode(Wave wave, sbyte* fileName);
// Wave/Sound management functions
diff --git a/Raylib-cs/interop/Rlgl.cs b/Raylib-cs/interop/Rlgl.cs
index cdf0d5d..1a33317 100644
--- a/Raylib-cs/interop/Rlgl.cs
+++ b/Raylib-cs/interop/Rlgl.cs
@@ -659,7 +659,7 @@ namespace Raylib_cs
/// Get internal accumulated transform matrix
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
- public static extern Matrix4x4 rlGetMatrixTramsform();
+ public static extern Matrix4x4 rlGetMatrixTransform();
/// Get internal projection matrix for stereo render (selected eye)
[DllImport(nativeLibName, CallingConvention = CallingConvention.Cdecl)]
diff --git a/Raylib-cs/types/Raylib.Utils.cs b/Raylib-cs/types/Raylib.Utils.cs
index 45d8d9f..9334071 100644
--- a/Raylib-cs/types/Raylib.Utils.cs
+++ b/Raylib-cs/types/Raylib.Utils.cs
@@ -20,7 +20,7 @@ namespace Raylib_cs
SetWindowTitle(str1.AsPointer());
}
- /// Get the human-readable, UTF-8 encoded name of the primary monitor
+ /// Get the human-readable, UTF-8 encoded name of the specified monitor
public static string GetMonitorName_(int monitor)
{
return Utf8StringUtils.GetUTF8String(GetMonitorName(monitor));
@@ -116,17 +116,17 @@ namespace Raylib_cs
}
/// Export image data to file
- public static void ExportImage(Image image, string fileName)
+ public static CBool ExportImage(Image image, string fileName)
{
using var str1 = fileName.ToUTF8Buffer();
- ExportImage(image, str1.AsPointer());
+ return ExportImage(image, str1.AsPointer());
}
/// Export image as code file defining an array of bytes
- public static void ExportImageAsCode(Image image, string fileName)
+ public static CBool ExportImageAsCode(Image image, string fileName)
{
using var str1 = fileName.ToUTF8Buffer();
- ExportImageAsCode(image, str1.AsPointer());
+ return ExportImageAsCode(image, str1.AsPointer());
}
/// Show trace log messages (LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERROR)
@@ -202,7 +202,7 @@ namespace Raylib_cs
return files;
}
- /// Return gamepad internal name id
+ /// Get gamepad internal name id
public static string GetGamepadName_(int gamepad)
{
return Utf8StringUtils.GetUTF8String(GetGamepadName(gamepad));
@@ -804,7 +804,7 @@ namespace Raylib_cs
return GetCodepointCount(str1.AsPointer());
}
- /// Returns next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure
+ /// Get next codepoint in a UTF8 encoded string; 0x3f('?') is returned on failure
/// single codepoint / "char"
public static int GetCodepoint(string text, ref int bytesProcessed)
{
@@ -884,17 +884,17 @@ namespace Raylib_cs
}
/// Export wave data to file
- public static void ExportWave(Wave wave, string fileName)
+ public static CBool ExportWave(Wave wave, string fileName)
{
using var str1 = fileName.ToUTF8Buffer();
- ExportWave(wave, str1.AsPointer());
+ return ExportWave(wave, str1.AsPointer());
}
/// Export wave sample data to code (.h)
- public static void ExportWaveAsCode(Wave wave, string fileName)
+ public static CBool ExportWaveAsCode(Wave wave, string fileName)
{
using var str1 = fileName.ToUTF8Buffer();
- ExportWaveAsCode(wave, str1.AsPointer());
+ return ExportWaveAsCode(wave, str1.AsPointer());
}
/// Load music stream from file