16 lines
435 B
C#
16 lines
435 B
C#
using System.Runtime.InteropServices;
|
|
using MoonWorks.Graphics;
|
|
using MoonWorks.Math.Float;
|
|
|
|
namespace MoonWorksTest
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
struct PositionTexture : MoonWorks.Graphics.IVertexType
|
|
{
|
|
public Vector3 Position;
|
|
public Vector2 Texture;
|
|
|
|
public static VertexElementFormat[] Formats => new VertexElementFormat[] { VertexElementFormat.Vector3, VertexElementFormat.Vector2 };
|
|
}
|
|
}
|