ExportMeshAsCode added
This commit is contained in:
parent
bb5ff58150
commit
5ee9ca3baa
2 changed files with 14 additions and 4 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1240,6 +1240,13 @@ public static unsafe partial class Raylib
|
|||
return ExportMesh(mesh, str1.AsPointer());
|
||||
}
|
||||
|
||||
/// <summary>Export mesh as code file (.h) defining multiple arrays of vertex attributes</summary>
|
||||
public static CBool ExportMeshAsCode(Mesh mesh, string fileName)
|
||||
{
|
||||
using var str1 = fileName.ToAnsiBuffer();
|
||||
return ExportMeshAsCode(mesh, str1.AsPointer());
|
||||
}
|
||||
|
||||
/// <summary>Draw a triangle strip defined by points</summary>
|
||||
public static void DrawTriangleStrip3D(Vector3[] points, int pointCount, Color color)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue