From 8c65412b69198015afb298bd3bff35eb20e8f3bb Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 8 Nov 2007 15:54:58 +0000 Subject: [PATCH] Added licensing information. --- Source/OpenTK/Fonts/TextHandle.cs | 38 +++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/Source/OpenTK/Fonts/TextHandle.cs b/Source/OpenTK/Fonts/TextHandle.cs index be4946fe..f88c8708 100644 --- a/Source/OpenTK/Fonts/TextHandle.cs +++ b/Source/OpenTK/Fonts/TextHandle.cs @@ -1,22 +1,56 @@ -using System; +#region --- License --- +/* Copyright (c) 2006, 2007 Stefanos Apostolopoulos + * See license.txt for license info + */ +#endregion + +using System; using System.Collections.Generic; using System.Text; namespace OpenTK.Fonts { - public class TextHandle + /// + /// Represents a handle to cached text. + /// + public class TextHandle : IDisposable { internal TextHandle(int handle) { Handle = handle; } + /// + /// The handle of the cached text. Call the OpenTK.Fonts.ITextPrinter.Draw() method + /// to draw the text represented by this TextHandle. + /// public readonly int Handle; internal TextureFont font; + protected bool disposed; + #region public override string ToString() + + /// + /// Returns a System.String that represents the current TextHandle. + /// + /// a System.String that descibes the current TextHandle. public override string ToString() { return String.Format("TextHandle: {0}", Handle); } + + #endregion + + #region --- IDisposable Members --- + + public void Dispose() + { + this.Dispose(true); + GC.SuppressFinalize(this); + } + protected virtual void Dispose(bool manual) { } + ~TextHandle() { this.Dispose(false); } + + #endregion } }