2using Microsoft.Xna.Framework;
3using Microsoft.Xna.Framework.Graphics;
9 VertexPositionColor[]
vertexBuffer =
new VertexPositionColor[512];
38 for (
int i = 0; i <
effect.CurrentTechnique.Passes.Count; i++ )
39 effect.CurrentTechnique.Passes[i].Apply();
56 new Vector3((
float)startPoint.
X, (
float)startPoint.
Y, 0f),
59 new Vector3((
float)endPoint.
X, (
float)endPoint.
Y, 0f),
static new GraphicsDevice GraphicsDevice
XNA:n grafiikkakortti.
Contains graphics resources.
static Effect GetColorEffect(ref Matrix worldMatrix, bool lightingEnabled)
void Draw(Vector startPoint, Vector endPoint, Color color)
void Begin(ref Matrix matrix)
VertexPositionColor[] vertexBuffer
Microsoft.Xna.Framework.Matrix Matrix
double Y
Vektorin Y-komponentti
double X
Vektorin X-komponentti.