Пример #1
0
 public static void DrawO(OpenGL gl,
                          float X,
                          float Y,
                          float sX        = 1.0f *BrettDisplay.DISP_RAT_MULT_X_TO_Y,
                          float sY        = 1.0f,
                          float r         = BrettDisplay.R_DEFAULT,
                          float g         = BrettDisplay.G_DEFAULT,
                          float b         = BrettDisplay.B_DEFAULT,
                          float linewidth = BrettDisplay.LINEWIDTH_DEFAULT,
                          float rotation  = 0.0f)
 {
     // O
     BrettArc.DrawLine(gl, 0.05f, X, Y, sX * 0.5f, sY, 0.0f, 360.0f, r, g, b, linewidth, 10);
 }
Пример #2
0
 public static void Draw9(OpenGL gl,
                          float X,
                          float Y,
                          float sX        = 1.0f *BrettDisplay.DISP_RAT_MULT_X_TO_Y,
                          float sY        = 1.0f,
                          float r         = BrettDisplay.R_DEFAULT,
                          float g         = BrettDisplay.G_DEFAULT,
                          float b         = BrettDisplay.B_DEFAULT,
                          float linewidth = BrettDisplay.LINEWIDTH_DEFAULT,
                          float rotation  = 0.0f)
 {
     // 9
     BrettLine.Draw(gl, X, Y - sY * 0.05f, X + sX * 0.02f, Y + sY * 0.003f, r, g, b, linewidth);
     BrettArc.DrawLine(gl, 0.027f, X, Y + sY * 0.022f, sX, sY, 0.0f, 360.0f, r, g, b, linewidth);
 }
Пример #3
0
 public static void Draw3(OpenGL gl,
                          float X,
                          float Y,
                          float sX        = 1.0f *BrettDisplay.DISP_RAT_MULT_X_TO_Y,
                          float sY        = 1.0f,
                          float r         = BrettDisplay.R_DEFAULT,
                          float g         = BrettDisplay.G_DEFAULT,
                          float b         = BrettDisplay.B_DEFAULT,
                          float linewidth = BrettDisplay.LINEWIDTH_DEFAULT,
                          float rotation  = 0.0f)
 {
     // 3
     BrettArc.DrawLine(gl, 0.025f, X, Y + sY * 0.022f, sX, sY, -175.0f, 45.0f, r, g, b, linewidth);
     BrettArc.DrawLine(gl, 0.025f, X, Y - sY * 0.022f, sX, sY, 85.0f, 315.0f, r, g, b, linewidth);
 }