2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
#region ================== Copyright (c) 2007 Pascal vd Heiden
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (c) 2007 Pascal vd Heiden, www.codeimp.com
|
|
|
|
* This program is released under GNU General Public License
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
#region ================== Namespaces
|
2019-08-09 04:18:08 +00:00
|
|
|
using System.Runtime.InteropServices;
|
2009-04-19 18:07:22 +00:00
|
|
|
#endregion
|
|
|
|
|
|
|
|
namespace CodeImp.DoomBuilder.Rendering
|
|
|
|
{
|
2019-08-09 04:18:08 +00:00
|
|
|
// FlatVertex
|
|
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
|
|
public struct FlatVertex
|
2009-04-19 18:07:22 +00:00
|
|
|
{
|
|
|
|
// Vertex format
|
2015-06-24 21:21:19 +00:00
|
|
|
public const int Stride = 24; //6 * 4
|
2009-04-19 18:07:22 +00:00
|
|
|
|
|
|
|
// Members
|
|
|
|
public float x;
|
|
|
|
public float y;
|
|
|
|
public float z;
|
|
|
|
public int c;
|
|
|
|
public float u;
|
|
|
|
public float v;
|
|
|
|
}
|
|
|
|
}
|