Skip to content

Commit 3594648

Browse files
committed
update to latest raygui/raylib
Signed-off-by: Tomas Slusny <[email protected]>
1 parent 156b8cd commit 3594648

File tree

7 files changed

+60
-16
lines changed

7 files changed

+60
-16
lines changed

lib/raylib

Submodule raylib updated 251 files

src/Raylib.NET/Enums/ShaderLocationIndex.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,8 @@ public enum ShaderLocationIndex
119119
/// Shader location: array of matrices uniform: boneMatrices
120120
/// </summary>
121121
SHADER_LOC_BONE_MATRICES,
122+
/// <summary>
123+
/// Shader location: vertex attribute: instanceTransform
124+
/// </summary>
125+
SHADER_LOC_VERTEX_INSTANCE_TX,
122126
}

src/Raylib.NET/Enums/ShaderUniformDataType.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,22 @@ public enum ShaderUniformDataType
3636
/// </summary>
3737
SHADER_UNIFORM_IVEC4,
3838
/// <summary>
39+
/// Shader uniform type: unsigned int
40+
/// </summary>
41+
SHADER_UNIFORM_UINT,
42+
/// <summary>
43+
/// Shader uniform type: uivec2 (2 unsigned int)
44+
/// </summary>
45+
SHADER_UNIFORM_UIVEC2,
46+
/// <summary>
47+
/// Shader uniform type: uivec3 (3 unsigned int)
48+
/// </summary>
49+
SHADER_UNIFORM_UIVEC3,
50+
/// <summary>
51+
/// Shader uniform type: uivec4 (4 unsigned int)
52+
/// </summary>
53+
SHADER_UNIFORM_UIVEC4,
54+
/// <summary>
3955
/// Shader uniform type: sampler2d
4056
/// </summary>
4157
SHADER_UNIFORM_SAMPLER2D,

src/Raylib.NET/Raylib.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ public static unsafe partial class Raylib
1212

1313
public const int RAYLIB_VERSION_MAJOR = 5;
1414

15-
public const int RAYLIB_VERSION_MINOR = 5;
15+
public const int RAYLIB_VERSION_MINOR = 6;
1616

1717
public const int RAYLIB_VERSION_PATCH = 0;
1818

19-
public const string RAYLIB_VERSION = "5.5";
19+
public const string RAYLIB_VERSION = "5.6-dev";
2020

2121
public const float PI = 3.14159265358979323846f;
2222

@@ -599,7 +599,7 @@ public static unsafe partial class Raylib
599599
public static partial void SetShaderValueMatrix(Shader shader, int locIndex, Matrix4x4 mat);
600600

601601
/// <summary>
602-
/// Set shader uniform value for texture (sampler2d)
602+
/// Set shader uniform value and bind the texture (sampler2d)
603603
/// </summary>
604604
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
605605
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
@@ -1193,6 +1193,13 @@ public static unsafe partial class Raylib
11931193
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
11941194
public static partial int GetCharPressed();
11951195

1196+
/// <summary>
1197+
/// Get name of a QWERTY key on the current keyboard layout (eg returns string 'q' for KEY_A on an AZERTY keyboard)
1198+
/// </summary>
1199+
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
1200+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
1201+
public static partial string GetKeyName(int key);
1202+
11961203
/// <summary>
11971204
/// Set a custom key to exit program (default is ESC)
11981205
/// </summary>
@@ -3084,14 +3091,14 @@ public static unsafe partial class Raylib
30843091
public static partial string TextToCamel(string text);
30853092

30863093
/// <summary>
3087-
/// Get integer value from text (negative values not supported)
3094+
/// Get integer value from text
30883095
/// </summary>
30893096
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
30903097
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
30913098
public static partial int TextToInteger(string text);
30923099

30933100
/// <summary>
3094-
/// Get float value from text (negative values not supported)
3101+
/// Get float value from text
30953102
/// </summary>
30963103
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
30973104
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]

src/Raylib.NET/Raymath.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,13 @@ public static unsafe partial class Raymath
123123
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
124124
public static partial float Vector2DotProduct(Vector2 v1, Vector2 v2);
125125

126+
/// <summary>
127+
/// Calculate two vectors cross product
128+
/// </summary>
129+
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
130+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
131+
public static partial float Vector2CrossProduct(Vector2 v1, Vector2 v2);
132+
126133
/// <summary>
127134
/// Calculate distance between two vectors
128135
/// </summary>
@@ -138,8 +145,9 @@ public static unsafe partial class Raymath
138145
public static partial float Vector2DistanceSqr(Vector2 v1, Vector2 v2);
139146

140147
/// <summary>
141-
/// Calculate angle between two vectors
142-
/// NOTE: Angle is calculated from origin point (0, 0)
148+
/// Calculate the signed angle from v1 to v2, relative to the origin (0, 0)
149+
/// NOTE: Coordinate system convention: positive X right, positive Y down,
150+
/// positive angles appear clockwise, and negative angles appear counterclockwise
143151
/// </summary>
144152
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
145153
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]

src/Raylib.NET/Rlgl.cs

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ public static unsafe partial class Rlgl
174174

175175
public const int RL_DEFAULT_SHADER_ATTRIB_LOCATION_INDICES = 6;
176176

177+
public const int RL_DEFAULT_SHADER_ATTRIB_LOCATION_INSTANCE_TX = 9;
178+
177179
/// <summary>
178180
/// Choose the current matrix to be transformed
179181
/// </summary>
@@ -589,21 +591,28 @@ public static unsafe partial class Rlgl
589591
public static partial void Scissor(int x, int y, int width, int height);
590592

591593
/// <summary>
592-
/// Enable wire mode
594+
/// Enable point mode
593595
/// </summary>
594-
[LibraryImport(LIBRARY, EntryPoint = "rlEnableWireMode", StringMarshalling = StringMarshalling.Utf8)]
596+
[LibraryImport(LIBRARY, EntryPoint = "rlEnablePointMode", StringMarshalling = StringMarshalling.Utf8)]
595597
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
596-
public static partial void EnableWireMode();
598+
public static partial void EnablePointMode();
597599

598600
/// <summary>
599-
/// Enable point mode
601+
/// Disable point mode
600602
/// </summary>
601-
[LibraryImport(LIBRARY, EntryPoint = "rlEnablePointMode", StringMarshalling = StringMarshalling.Utf8)]
603+
[LibraryImport(LIBRARY, EntryPoint = "rlDisablePointMode", StringMarshalling = StringMarshalling.Utf8)]
602604
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
603-
public static partial void EnablePointMode();
605+
public static partial void DisablePointMode();
606+
607+
/// <summary>
608+
/// Enable wire mode
609+
/// </summary>
610+
[LibraryImport(LIBRARY, EntryPoint = "rlEnableWireMode", StringMarshalling = StringMarshalling.Utf8)]
611+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
612+
public static partial void EnableWireMode();
604613

605614
/// <summary>
606-
/// Disable wire (and point) mode
615+
/// Disable wire mode
607616
/// </summary>
608617
[LibraryImport(LIBRARY, EntryPoint = "rlDisableWireMode", StringMarshalling = StringMarshalling.Utf8)]
609618
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]

0 commit comments

Comments
 (0)