Beispiel #1
0
        public GLPainter()
        {
            CurrentFont = PixelFarm.Drawing.GLES2.GLES2Platform.DefaultFont;
            UseVertexBufferObjectForRenderVx = true;
            //tools
            _pathRenderVxBuilder  = new FigureBuilder();
            _defaultBrush         = _currentBrush = new SolidBrush(Color.Black); //default brush
            _pathRenderVxBuilder2 = new PathRenderVxBuilder2();


            //default
            _mySimpleGLBitmapAtlas = new CpuBlit.BitmapAtlas.MySimpleGLBitmapAtlasManager(CpuBlit.BitmapAtlas.TextureKind.Bitmap);
            SetBitmapAtlasManager(_mySimpleGLBitmapAtlas);
        }
Beispiel #2
0
        public GLPainter()
        {
            //TODO: config default font
#if __MOBILE__
            //CurrentFont = new RequestFont("Droid Sans", 24);
            CurrentFont = new RequestFont("SOV_Thanamas", 24);
#else
            CurrentFont = new RequestFont("tahoma", 14);
#endif
            UseVertexBufferObjectForRenderVx = true;
            //tools
            _pathRenderVxBuilder  = new PathRenderVxBuilder();
            _defaultBrush         = _currentBrush = new SolidBrush(Color.Black); //default brush
            _pathRenderVxBuilder2 = new PathRenderVxBuilder2();
        }