/// <summary>
/// Disposes DrawFactory resources
/// </summary>
public static void DisposeGraphicsFactory()
{
font.Dispose();
drawBoxLine.Dispose();
drawLine.Dispose();
drawCircleLine.Dispose();
drawFilledBoxLine.Dispose();
drawTriLine.Dispose();
device.Dispose();
}
public struct Margins
{
public int Left, Right, Top, Bottom;
}
public static Margins Marg;
public static SharpDX.Direct3D9.Font font;
public static SharpDX.Direct3D9.Line drawBoxLine;
public static SharpDX.Direct3D9.Line drawLine;
public static SharpDX.Direct3D9.Line drawCircleLine;
public static SharpDX.Direct3D9.Line drawFilledBoxLine;
public static SharpDX.Direct3D9.Line drawTriLine;
public const int GWL_EXSTYLE = -20;
public const int WS_EX_LAYERED = 0x80000;
public const int WS_EX_TRANSPARENT = 0x20;
public const int LWA_ALPHA = 0x2;
public const int LWA_COLORKEY = 0x1;
public static void DrawText(string text, int FontSize, Vector2 position, Color color)
{
if (string.IsNullOrEmpty(text))
return;
var FontDescription = font.Description;
FontDescription.Height = FontSize;
var fontDimension = font.MeasureText(null, text, new Rectangle((int)position.X, (int)position.Y, 0, 0), FontDrawFlags.Center | FontDrawFlags.VerticalCenter);
font.DrawText(null, text, fontDimension, FontDrawFlags.Center | FontDrawFlags.VerticalCenter, color);
}
public static void DrawLine(float x1, float y1, float x2, float y2, float w, Color Color)
{
drawLine.Width = w;
drawLine.Antialias = false;
drawLine.GLLines = true;
RawVector2[] vertices =
{
new RawVector2(x1, y1),
new RawVector2(x2, y2)
};
drawLine.Begin();
drawLine.Draw(vertices, new RawColorBGRA(Color.B, Color.G, Color.R, Color.A));
drawLine.End();
}
public static void DrawFilledBox(float x, float y, float w, float h, Color Color)
{
Vector2[] vLine = new Vector2[2];
drawFilledBoxLine.Width = w;
drawFilledBoxLine.GLLines = true;
drawFilledBoxLine.Antialias = false;
vLine[0].X = x + w / 2;
vLine[0].Y = y;
vLine[1].X = x + w / 2;
vLine[1].Y = y + h;
drawFilledBoxLine.Begin();
drawFilledBoxLine.Draw(vLine, new RawColorBGRA(Color.B, Color.G, Color.R, Color.A));
drawFilledBoxLine.End();
/* Example */
/* DrawFilledBox(x , y, w, h, color); */
}
public static void DrawBox(float x, float y, float w, float h, Color color)
{
Vector2[] vertices =
{
new Vector2(x, y),
new Vector2(x + w, y),
new Vector2(x + w, y + h),
new Vector2(x, y + h),
new Vector2(x, y)
};
drawBoxLine.Begin();
drawBoxLine.Draw(vertices, color);
drawBoxLine.End();
/* Example */
/* DrawBox(x , y, w, h, color); */
}
public static void DrawPoint(float x, float y, Color color)
{
DrawFilledBox(x, y, 1, 1, color);
/* Example */
/* DrawPoint(x Axis, y Axis, Color */
}
public static void DrawCircle(int X, int Y, float radius, int numSides, Color color)
{
Vector2[] Line = new Vector2[100];
float Step = (float)(Math.PI * 2.0 / numSides);
int Count = 0;
for (float a = 0; a < Math.PI * 2.0; a += Step)
{
float X1 = (float)(radius * Math.Cos(a) + X);
float Y1 = (float)(radius * Math.Sin(a) + Y);
float X2 = (float)(radius * Math.Cos(a + Step) + X);
float Y2 = (float)(radius * Math.Sin(a + Step) + Y);
Line[Count].X = X1;
Line[Count].Y = Y1;
Line[Count + 1].X = X2;
Line[Count + 1].Y = Y2;
Count += 2;
}
drawCircleLine.Begin();
drawCircleLine.Draw(Line, color);
drawCircleLine.End();
}
public static void DrawEllipse(int X, int Y, float radiusX, float radiusY, float Width, Color color)
{
Vector2[] Line = new Vector2[360];
int i;
for (i = 0; i < 360; i++)
{
double rad = i * 3.14159 / 180.0;
Line[i].X = X + (float)Math.Cos(rad) * radiusX;
Line[i].Y = Y + (float)Math.Sin(rad) * radiusY;
}
drawCircleLine.Width = Width;
drawCircleLine.Begin();
drawCircleLine.Draw(Line, color);
drawCircleLine.End();
}
public static void DrawFilledCircle(int X, int Y, float radius, int numsides, Color color)
{
for (float i = 0; i <= radius; i += 1.5f)
{
DrawCircle(X, Y, i + 0.5f, numsides, color);
DrawCircle(X, Y, i + 1.0f, numsides, color);
DrawCircle(X, Y, i + 1.5f, numsides, color);
}
}
public static void DrawTriangle(int x, int y, int w, int h, Color c)
{
Vector2[] vertices =
{
new Vector2(x, y),
new Vector2(x + w, y),
new Vector2(x + (w / 2), y - h),
new Vector2(x, y)
};
drawBoxLine.Begin();
drawBoxLine.Draw(vertices, c);
drawBoxLine.End();
/* Example */
/* Triangle(x Axis, y Axis, base length, height, color); */
}
private static Effect Effect;
private static EffectHandle Technique;
private static VertexBuffer VertexBuffer;
private static VertexDeclaration VertexDeclaration;
private static VertexElement[] VertexElements;
public static void InitialiseCircleDrawing(SharpDX.Direct3D9.Device Device)
{
VertexBuffer = new VertexBuffer(Device, Utilities.SizeOf<Vector4>() * 3, Usage.WriteOnly, VertexFormat.Texture0, Pool.Managed);
VertexBuffer.Lock(0, 0, LockFlags.None).WriteRange<Vector4>(new Vector4[]
{
new Vector4(-20000f, 0f, -20000f, 1f),
new Vector4(0f, 0f, 20000f, 1f),
new Vector4(20000f, 0f, -20000f, 1f)
});
VertexBuffer.Unlock();
VertexElements = new VertexElement[]
{
new VertexElement(0, 0, DeclarationType.Float4, DeclarationMethod.Default, DeclarationUsage.Position, 0),
VertexElement.VertexDeclarationEnd
};
VertexDeclaration = new VertexDeclaration(Device, VertexElements);
byte[] memory = new byte[]
{
1,
9,
255,
254,
84,
2,
0,
0,
0,
0,
0,
0,
3,
0,
0,
0,
2,
0,
0,
0,
96,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
0,
0,
0,
4,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
17,
0,
0,
0,
80,
114,
111,
106,
101,
99,
116,
105,
111,
110,
77,
97,
116,
114,
105,
120,
0,
0,
0,
0,
3,
0,
0,
0,
1,
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
240,
1,
0,
0,
146,
0,
0,
0,
0,
0,
0,
0,
20,
2,
0,
0,
16,
2,
0,
0,
147,
0,
0,
0,
0,
0,
0,
0,
44,
2,
0,
0,
40,
2,
0,
0,
0,
0,
0,
0,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
255,
255,
255,
255,
5,
0,
0,
0,
0,
0,
0,
0,
228,
5,
0,
0,
0,
2,
255,
255,
254,
255,
59,
0,
67,
84,
65,
66,
28,
0,
0,
0,
183,
0,
0,
0,
0,
2,
255,
255,
3,
0,
0,
0,
28,
0,
0,
0,
0,
0,
0,
32,
176,
0,
0,
0,
88,
0,
0,
0,
2,
0,
6,
0,
1,
0,
0,
0,
96,
0,
0,
0,
112,
0,
0,
0,
128,
0,
0,
0,
2,
0,
8,
0,
1,
0,
0,
0,
136,
0,
0,
0,
112,
0,
0,
0,
152,
0,
0,
0,
2,
0,
7,
0,
1,
0,
0,
0,
160,
0,
0,
0,
112,
0,
0,
0,
67,
111,
108,
111,
114,
0,
171,
171,
1,
0,
3,
0,
1,
0,
4,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
70,
105,
108,
108,
101,
100,
0,
171,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
82,
97,
100,
105,
117,
115,
0,
171,
0,
0,
3,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
112,
115,
95,
50,
95,
48,
0,
77,
105,
99,
114,
111,
115,
111,
102,
116,
32,
40,
82,
41,
32,
72,
76,
83,
76,
32,
83,
104,
97,
100,
101,
114,
32,
67,
111,
109,
112,
105,
108,
101,
114,
32,
57,
46,
50,
57,
46,
57,
53,
50,
46,
51,
49,
49,
49,
0,
254,
255,
211,
0,
80,
82,
69,
83,
1,
2,
88,
70,
254,
255,
70,
0,
67,
84,
65,
66,
28,
0,
0,
0,
227,
0,
0,
0,
1,
2,
88,
70,
4,
0,
0,
0,
28,
0,
0,
0,
0,
1,
0,
32,
224,
0,
0,
0,
108,
0,
0,
0,
2,
0,
0,
0,
1,
0,
0,
0,
116,
0,
0,
0,
132,
0,
0,
0,
148,
0,
0,
0,
2,
0,
1,
0,
1,
0,
0,
0,
156,
0,
0,
0,
132,
0,
0,
0,
172,
0,
0,
0,
2,
0,
2,
0,
1,
0,
0,
0,
180,
0,
0,
0,
132,
0,
0,
0,
196,
0,
0,
0,
2,
0,
3,
0,
1,
0,
0,
0,
208,
0,
0,
0,
132,
0,
0,
0,
67,
111,
108,
111,
114,
0,
171,
171,
1,
0,
3,
0,
1,
0,
4,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
82,
97,
100,
105,
117,
115,
0,
171,
0,
0,
3,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
87,
105,
100,
116,
104,
0,
171,
171,
0,
0,
3,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
97,
110,
116,
105,
65,
108,
105,
97,
115,
0,
171,
171,
0,
0,
3,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
116,
120,
0,
77,
105,
99,
114,
111,
115,
111,
102,
116,
32,
40,
82,
41,
32,
72,
76,
83,
76,
32,
83,
104,
97,
100,
101,
114,
32,
67,
111,
109,
112,
105,
108,
101,
114,
32,
57,
46,
50,
57,
46,
57,
53,
50,
46,
51,
49,
49,
49,
0,
254,
255,
12,
0,
80,
82,
83,
73,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
6,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
0,
0,
6,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
254,
255,
42,
0,
67,
76,
73,
84,
20,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0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
0,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
12,
0,
0,
0,
0,
0,
0,
0,
4,
0,
0,
0,
12,
0,
0,
0,
1,
0,
0,
16,
1,
0,
0,
0,
0,
0,
0,
0,
7,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
0,
0,
0,
8,
0,
0,
0,
1,
0,
48,
16,
1,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
12,
0,
0,
0,
0,
0,
0,
0,
4,
0,
0,
0,
16,
0,
0,
0,
3,
0,
0,
16,
1,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
0,
0,
0,
20,
0,
0,
0,
240,
240,
240,
240,
15,
15,
15,
15,
255,
255,
0,
0,
81,
0,
0,
5,
9,
0,
15,
160,
0,
0,
0,
0,
0,
0,
0,
128,
0,
0,
128,
191,
0,
0,
0,
0,
31,
0,
0,
2,
0,
0,
0,
128,
0,
0,
7,
176,
5,
0,
0,
3,
0,
0,
8,
128,
0,
0,
170,
176,
0,
0,
170,
176,
4,
0,
0,
4,
0,
0,
1,
128,
0,
0,
0,
176,
0,
0,
0,
176,
0,
0,
255,
128,
7,
0,
0,
2,
0,
0,
1,
128,
0,
0,
0,
128,
6,
0,
0,
2,
0,
0,
1,
128,
0,
0,
0,
128,
2,
0,
0,
3,
0,
0,
2,
128,
0,
0,
0,
129,
7,
0,
0,
160,
35,
0,
0,
2,
0,
0,
2,
128,
0,
0,
85,
128,
2,
0,
0,
3,
0,
0,
4,
128,
0,
0,
85,
129,
3,
0,
0,
160,
5,
0,
0,
3,
0,
0,
4,
128,
0,
0,
170,
128,
4,
0,
0,
160,
5,
0,
0,
3,
0,
0,
4,
128,
0,
0,
170,
128,
6,
0,
255,
160,
2,
0,
0,
3,
0,
0,
8,
128,
0,
0,
85,
128,
3,
0,
0,
161,
2,
0,
0,
3,
0,
0,
2,
128,
0,
0,
85,
128,
2,
0,
0,
161,
88,
0,
0,
4,
0,
0,
2,
128,
0,
0,
85,
128,
9,
0,
85,
160,
9,
0,
170,
160,
1,
0,
0,
2,
1,
0,
8,
128,
9,
0,
85,
160,
88,
0,
0,
4,
0,
0,
2,
128,
8,
0,
0,
161,
0,
0,
85,
128,
1,
0,
255,
128,
88,
0,
0,
4,
0,
0,
4,
128,
0,
0,
255,
128,
9,
0,
0,
160,
0,
0,
170,
128,
88,
0,
0,
4,
0,
0,
2,
128,
0,
0,
85,
128,
0,
0,
170,
128,
6,
0,
255,
160,
2,
0,
0,
3,
0,
0,
4,
128,
0,
0,
0,
128,
1,
0,
0,
161,
2,
0,
0,
3,
0,
0,
1,
128,
0,
0,
0,
129,
0,
0,
0,
160,
88,
0,
0,
4,
0,
0,
4,
128,
0,
0,
170,
128,
1,
0,
255,
128,
8,
0,
0,
161,
88,
0,
0,
4,
0,
0,
2,
128,
0,
0,
170,
128,
0,
0,
85,
128,
6,
0,
255,
160,
88,
0,
0,
4,
0,
0,
8,
128,
0,
0,
0,
128,
0,
0,
85,
128,
9,
0,
0,
160,
1,
0,
0,
2,
0,
0,
7,
128,
5,
0,
228,
160,
1,
0,
0,
2,
0,
8,
15,
128,
0,
0,
228,
128,
255,
255,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
255,
255,
255,
255,
4,
0,
0,
0,
0,
0,
0,
0,
88,
1,
0,
0,
0,
2,
254,
255,
254,
255,
52,
0,
67,
84,
65,
66,
28,
0,
0,
0,
155,
0,
0,
0,
0,
2,
254,
255,
1,
0,
0,
0,
28,
0,
0,
0,
0,
0,
0,
32,
148,
0,
0,
0,
48,
0,
0,
0,
2,
0,
0,
0,
4,
0,
0,
0,
68,
0,
0,
0,
84,
0,
0,
0,
80,
114,
111,
106,
101,
99,
116,
105,
111,
110,
77,
97,
116,
114,
105,
120,
0,
171,
171,
171,
3,
0,
3,
0,
4,
0,
4,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
118,
115,
95,
50,
95,
48,
0,
77,
105,
99,
114,
111,
115,
111,
102,
116,
32,
40,
82,
41,
32,
72,
76,
83,
76,
32,
83,
104,
97,
100,
101,
114,
32,
67,
111,
109,
112,
105,
108,
101,
114,
32,
57,
46,
50,
57,
46,
57,
53,
50,
46,
51,
49,
49,
49,
0,
81,
0,
0,
5,
4,
0,
15,
160,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
31,
0,
0,
2,
0,
0,
0,
128,
0,
0,
15,
144,
9,
0,
0,
3,
0,
0,
1,
192,
0,
0,
228,
144,
0,
0,
228,
160,
9,
0,
0,
3,
0,
0,
2,
192,
0,
0,
228,
144,
1,
0,
228,
160,
9,
0,
0,
3,
0,
0,
4,
192,
0,
0,
228,
144,
2,
0,
228,
160,
9,
0,
0,
3,
0,
0,
8,
192,
0,
0,
228,
144,
3,
0,
228,
160,
1,
0,
0,
2,
0,
0,
15,
208,
4,
0,
0,
160,
1,
0,
0,
2,
0,
0,
15,
224,
0,
0,
228,
144,
255,
255,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
255,
255,
255,
255,
0,
0,
0,
0,
0,
0,
0,
0,
220,
0,
0,
0,
0,
2,
88,
70,
254,
255,
36,
0,
67,
84,
65,
66,
28,
0,
0,
0,
91,
0,
0,
0,
0,
2,
88,
70,
1,
0,
0,
0,
28,
0,
0,
0,
0,
1,
0,
32,
88,
0,
0,
0,
48,
0,
0,
0,
2,
0,
0,
0,
1,
0,
0,
0,
56,
0,
0,
0,
72,
0,
0,
0,
69,
110,
97,
98,
108,
101,
90,
0,
0,
0,
1,
0,
1,
0,
1,
0,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
116,
120,
0,
77,
105,
99,
114,
111,
115,
111,
102,
116,
32,
40,
82,
41,
32,
72,
76,
83,
76,
32,
83,
104,
97,
100,
101,
114,
32,
67,
111,
109,
112,
105,
108,
101,
114,
32,
57,
46,
50,
57,
46,
57,
53,
50,
46,
51,
49,
49,
49,
0,
254,
255,
2,
0,
67,
76,
73,
84,
0,
0,
0,
0,
254,
255,
12,
0,
70,
88,
76,
67,
1,
0,
0,
0,
1,
0,
0,
16,
1,
0,
0,
0,
0,
0,
0,
0,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
4,
0,
0,
0,
0,
0,
0,
0,
240,
240,
240,
240,
15,
15,
15,
15,
255,
255,
0,
0
};
Effect = Effect.FromMemory(Device, memory, ShaderFlags.OptimizationLevel1);
Technique = Effect.GetTechnique(0);
}
}