• Main Page
  • Packages
  • Classes
  • Files
  • File List

trunk/visLU/GridVertices.cs

Go to the documentation of this file.
00001 using System;
00002 using System.Collections.Generic;
00003 using System.Linq;
00004 using System.Text;
00005 using Microsoft.Xna.Framework.Graphics;
00006 using Microsoft.Xna.Framework;
00007 
00008 namespace visLU2
00009 {
00013     public struct GridVertices
00014     {
00015         public Vector2 Position;
00016         public Vector3 Velocity;
00017         public Vector3 AddChannels;
00018    
00019         public static readonly VertexElement[] VertexElements = new VertexElement[] 
00020         {
00021             new VertexElement(0, 0, VertexElementFormat.Vector2, VertexElementMethod.Default, VertexElementUsage.Position, 0),
00022             new VertexElement(0, sizeof(float) * 2, VertexElementFormat.Vector3, VertexElementMethod.Default, VertexElementUsage.TextureCoordinate, 0),
00023             new VertexElement(0, sizeof(float) * 2 + sizeof(float) * 3, VertexElementFormat.Vector3, VertexElementMethod.Default, VertexElementUsage.TextureCoordinate, 1)
00024         };
00025         public static readonly int SizeInBytes = sizeof(float) * (2 + 3 + 3);
00026     }
00027 }

Generated on Wed Jan 19 2011 21:59:17 for flowvis-2 by  doxygen 1.7.2