From b5973ddd7f825256c051e5e0c4191d1db49285d9 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Wed, 23 Jan 2008 12:42:07 +0000 Subject: [PATCH] Add a using declaration to help differentiate between OpenTK.Graphics and System.Drawing.Graphics. --- Source/OpenTK/Fonts/Glyph.cs | 2 ++ Source/OpenTK/Fonts/TextureFont.cs | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Source/OpenTK/Fonts/Glyph.cs b/Source/OpenTK/Fonts/Glyph.cs index bd1674c3..4da90a70 100644 --- a/Source/OpenTK/Fonts/Glyph.cs +++ b/Source/OpenTK/Fonts/Glyph.cs @@ -11,6 +11,8 @@ using System.Drawing; namespace OpenTK.Fonts { + using Graphics = System.Drawing.Graphics; + /// /// Represents a single character of a specific Font. /// diff --git a/Source/OpenTK/Fonts/TextureFont.cs b/Source/OpenTK/Fonts/TextureFont.cs index a6448b20..c16d70e7 100644 --- a/Source/OpenTK/Fonts/TextureFont.cs +++ b/Source/OpenTK/Fonts/TextureFont.cs @@ -7,20 +7,21 @@ using System; using System.Collections.Generic; using System.Text; -//using System.Drawing; using System.Drawing.Text; +using System.Drawing; +using System.Drawing.Imaging; +using System.Runtime.InteropServices; +using System.Diagnostics; using OpenTK.Math; using OpenTK.OpenGL; using OpenTK.OpenGL.Enums; -using System.Drawing.Imaging; using OpenTK.Platform; -using System.Drawing; -using System.Runtime.InteropServices; -using System.Diagnostics; namespace OpenTK.Fonts { + using Graphics = System.Drawing.Graphics; + public class TextureFont : IFont { Font font;