git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1119 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-07 03:29:45 +00:00
parent ac94527e91
commit 34fc937db2
5 changed files with 117 additions and 0 deletions

23
OpenRa.Game/Vertex.cs Normal file
View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using BluntDirectX.Direct3D;
namespace OpenRa.Game
{
[StructLayout(LayoutKind.Sequential)]
struct Vertex
{
public float x, y, z, u, v;
public Vertex(float x, float y, float z, float u, float v)
{
this.x = x; this.y = y; this.z = z;
this.u = u;
this.v = v;
}
public const VertexFormat Format = VertexFormat.Position | VertexFormat.Texture;
}
}