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

ExportMeshAsCode added

This commit is contained in:
JupiterRider 2024-12-06 20:54:39 +01:00
commit 5ee9ca3baa
2 changed files with 14 additions and 4 deletions

View file

@ -2504,10 +2504,6 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void DrawMeshInstanced(Mesh mesh, Material material, Matrix4x4* transforms, int instances);
/// <summary>Export mesh data to file, returns true on success</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern CBool ExportMesh(Mesh mesh, sbyte* fileName);
/// <summary>Compute mesh bounding box limits</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern BoundingBox GetMeshBoundingBox(Mesh mesh);
@ -2516,6 +2512,13 @@ public static unsafe partial class Raylib
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern void GenMeshTangents(Mesh* mesh);
/// <summary>Export mesh data to file, returns true on success</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern CBool ExportMesh(Mesh mesh, sbyte* fileName);
/// <summary>Export mesh as code file (.h) defining multiple arrays of vertex attributes</summary>
[DllImport(NativeLibName, CallingConvention = CallingConvention.Cdecl)]
public static extern CBool ExportMeshAsCode(Mesh mesh, sbyte* fileName);
// Mesh generation functions