Example #1
0
        public PTextWriter(IGLContextLateUpdate context, Size area_size)
        {
            Positions = new List<PointF>();
            Lines = new List<string>();
            ColorBrushes = new List<Brush>();

            TextBitmap = new Bitmap(area_size.Width, area_size.Height);
            // HACK FIXIE
            context.AddUpdateEventHandler(this, (sender, e) =>
                {
                    TextureID = CreateTexture();
                    return true;
                });
        }
Example #2
0
        public PTextWriter(IGLContextLateUpdate context, Size area_size)
        {
            Positions    = new List <PointF>();
            Lines        = new List <string>();
            ColorBrushes = new List <Brush>();

            TextBitmap = new Bitmap(area_size.Width, area_size.Height);
            // HACK FIXIE
            context.AddUpdateEventHandler(this, (sender, e) =>
            {
                TextureID = CreateTexture();
                return(true);
            });
        }