17 lines
396 B
C#
17 lines
396 B
C#
using System.Runtime.CompilerServices;
|
|
|
|
namespace Prism
|
|
{
|
|
public static class MeshFactory
|
|
{
|
|
|
|
public static Mesh CreatePlane(float width, float height)
|
|
{
|
|
return new Mesh(CreatePlane_Native(width, height));
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall)]
|
|
public static extern IntPtr CreatePlane_Native(float width, float height);
|
|
|
|
}
|
|
} |