Adding a string method for OpenURL and Add a string method for OpenURL and SetGamepadMappings
This commit is contained in:
parent
7e0866c222
commit
321c93f02b
1 changed files with 14 additions and 0 deletions
|
|
@ -38,6 +38,20 @@ namespace Raylib_cs
|
||||||
using var str1 = text.ToUTF8Buffer();
|
using var str1 = text.ToUTF8Buffer();
|
||||||
SetClipboardText(str1.AsPointer());
|
SetClipboardText(str1.AsPointer());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>Open URL with default system browser (if available)</summary>
|
||||||
|
public static void OpenURL(string url)
|
||||||
|
{
|
||||||
|
using var str1 = url.ToUTF8Buffer();
|
||||||
|
OpenURL(str1.AsPointer());
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Set internal gamepad mappings (SDL_GameControllerDB)</summary>
|
||||||
|
public static int SetGamepadMappings(string mappings)
|
||||||
|
{
|
||||||
|
using var str1 = mappings.ToUTF8Buffer();
|
||||||
|
return SetGamepadMappings(str1.AsPointer());
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Load shader from files and bind default locations</summary>
|
/// <summary>Load shader from files and bind default locations</summary>
|
||||||
public static Shader LoadShader(string vsFileName, string fsFileName)
|
public static Shader LoadShader(string vsFileName, string fsFileName)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue