Esempio n. 1
0
        void DrawText()
        {
            GL.BlitIntoBitmap(frameData, new Point(0, 0), new Rectangle(0, this.ClientSize.Height - 100, 400, 100));

            //GL.DeleteTransparency(frameData);

            using (Graphics g = Graphics.FromImage(frameData))
            {
                g.DrawString("renderXF v0.3.3", new Font("Consolas", 12), Brushes.White, new Rectangle(0, 0, 200, 200));
                g.DrawString("XF  : " + 0 + " FPS", new Font("Consolas", 12), Brushes.White, new Rectangle(0, 20, 200, 200));
            }

            GL.BlitFromBitmap(frameData, new Point(0, this.ClientSize.Height - 100), new Rectangle(0, 0, 400, 100));
        }