3 using System.Collections.Generic;
35 static readonly Vector3[]
Vertices =
new Vector3[]
38 new Vector3(-0.5f, 0.5f, 0),
39 new Vector3(-0.5f, -0.5f, 0),
40 new Vector3(0.5f, 0.5f, 0),
43 new Vector3(-0.5f, -0.5f, 0),
44 new Vector3(0.5f, -0.5f, 0),
45 new Vector3(0.5f, 0.5f, 0),
99 device.RasterizerState = RasterizerState.CullClockwise;
100 device.BlendState = BlendState.AlphaBlend;
105 for (
int i = 0; i <
effect.CurrentTechnique.Passes.Count; i++ )
106 effect.CurrentTechnique.Passes[i].Apply();
108 device.DrawUserPrimitives<VertexPositionTexture>(
109 PrimitiveType.TriangleList,
127 Matrix.CreateScale( size.X, size.Y, 1f )
128 *
Matrix.CreateRotationZ( angle )
129 *
Matrix.CreateTranslation( position.X, position.Y, 0 )