Пример #1
0
 public static void DrawMinus(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)
 {
     // -
     BrettLine.Draw(gl, X - sX * 0.025f, Y, X + sX * 0.025f, Y, r, g, b, linewidth);
 }
Пример #2
0
 public static void Draw0(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)
 {
     // 0
     BrettArc.DrawLine(gl, 0.05f, X, Y, sX * 0.5f, sY, 0.0f, 360.0f, r, g, b, linewidth, 10);
     BrettLine.Draw(gl, X - sX * 0.021f, Y - sY * 0.01f, X + sX * 0.021f, Y + sY * 0.01f, r, g, b, linewidth);
 }
Пример #3
0
        public static void DrawActiveCursor(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)
        {
            // Active Cursor
            BrettLine.Draw(gl, X - sX * 0.02f, Y - sY * 0.07f, X + sX * 0.02f, Y - sY * 0.07f, r, g, b, linewidth);
            BrettLine.Draw(gl, X + sX * (CHAR_W), Y - sY * 0.05f, X + sX * CHAR_W, Y + sY * 0.05f, r, g, b, linewidth);

            // TBD
            // Provide capability to select text using ctrl and shift
        }