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

Update names of methods, variables, and other elements

This commit is contained in:
MrScautHD 2023-07-15 13:28:19 +02:00 committed by GitHub
commit fd4ea148b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 1190 additions and 1204 deletions

View file

@ -222,11 +222,11 @@ namespace Raylib_cs
public static string[] GetDroppedFiles()
{
var filePathList = LoadDroppedFiles();
var files = new string[filePathList.count];
var files = new string[filePathList.Count];
for (var i = 0; i < filePathList.count; i++)
for (var i = 0; i < filePathList.Count; i++)
{
files[i] = Marshal.PtrToStringUTF8((IntPtr)filePathList.paths[i]);
files[i] = Marshal.PtrToStringUTF8((IntPtr)filePathList.Paths[i]);
}
UnloadDroppedFiles(filePathList);
@ -1036,12 +1036,12 @@ namespace Raylib_cs
public static Material GetMaterial(ref Model model, int materialIndex)
{
return model.materials[materialIndex];
return model.Materials[materialIndex];
}
public static Texture2D GetMaterialTexture(ref Model model, int materialIndex, MaterialMapIndex mapIndex)
{
return model.materials[materialIndex].maps[(int)mapIndex].texture;
return model.Materials[materialIndex].Maps[(int)mapIndex].Texture;
}
public static void SetMaterialTexture(
@ -1051,12 +1051,12 @@ namespace Raylib_cs
ref Texture2D texture
)
{
SetMaterialTexture(&model.materials[materialIndex], mapIndex, texture);
SetMaterialTexture(&model.Materials[materialIndex], mapIndex, texture);
}
public static void SetMaterialShader(ref Model model, int materialIndex, ref Shader shader)
{
model.materials[materialIndex].shader = shader;
model.Materials[materialIndex].Shader = shader;
}
}
}