2022-11-09 19:54:42 +00:00
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
using MoonWorks.Graphics;
|
|
|
|
|
using MoonWorks.Math.Float;
|
|
|
|
|
|
|
|
|
|
namespace MoonWorks.Test
|
|
|
|
|
{
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct PositionColorVertex
|
|
|
|
|
{
|
|
|
|
|
public Vector3 Position;
|
|
|
|
|
public Color Color;
|
|
|
|
|
|
|
|
|
|
public PositionColorVertex(Vector3 position, Color color)
|
|
|
|
|
{
|
|
|
|
|
Position = position;
|
|
|
|
|
Color = color;
|
|
|
|
|
}
|
2022-11-12 03:51:31 +00:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Position + " | " + Color;
|
|
|
|
|
}
|
2022-11-09 19:54:42 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
|
public struct PositionTextureVertex
|
|
|
|
|
{
|
|
|
|
|
public Vector3 Position;
|
|
|
|
|
public Vector2 TexCoord;
|
|
|
|
|
|
|
|
|
|
public PositionTextureVertex(Vector3 position, Vector2 texCoord)
|
|
|
|
|
{
|
|
|
|
|
Position = position;
|
|
|
|
|
TexCoord = texCoord;
|
|
|
|
|
}
|
2022-11-12 03:51:31 +00:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Position + " | " + TexCoord;
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-11-09 19:54:42 +00:00
|
|
|
|
}
|