示例#1
0
        public static Xresources Create()
        {
            var theme = new TangoTheme();

            theme.Reset();
            return(theme);
        }
示例#2
0
        // ----------------------------------------------------------------------------------------------------
        // -- Constructors
        // ----------------------------------------------------------------------------------------------------

        /// <summary>
        /// Create terminal with this geometry
        /// </summary>
        public TextDisplay(int sizeX, int sizeY, Xresources colorTheme = null)
        {
            // load resources
            theme              = colorTheme != null ? colorTheme : TangoTheme.Create( );
            cursor             = new DisplayCursor(this);
            backgroundMaterial = ReadMaterial("VARP/DebugDraw/GLlineZOff");
            defaultMaterial    = ReadMaterial("VARP/DebugDraw/GLFontZOff");
            defaultFont        = ReadFont("VARP/DebugDraw/GLFont");
            // get font's information
            lineHeight  = defaultFont.lineHeight;
            charAdvance = GetMaxCharWidth();
            SetBufferSize(sizeX, sizeY);
            ResetColor();
        }