mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-27 07:21:00 +00:00
Added licensing information.
This commit is contained in:
parent
a551ee3b41
commit
8c65412b69
|
@ -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.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace OpenTK.Fonts
|
namespace OpenTK.Fonts
|
||||||
{
|
{
|
||||||
public class TextHandle
|
/// <summary>
|
||||||
|
/// Represents a handle to cached text.
|
||||||
|
/// </summary>
|
||||||
|
public class TextHandle : IDisposable
|
||||||
{
|
{
|
||||||
internal TextHandle(int handle)
|
internal TextHandle(int handle)
|
||||||
{
|
{
|
||||||
Handle = handle;
|
Handle = handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The handle of the cached text. Call the OpenTK.Fonts.ITextPrinter.Draw() method
|
||||||
|
/// to draw the text represented by this TextHandle.
|
||||||
|
/// </summary>
|
||||||
public readonly int Handle;
|
public readonly int Handle;
|
||||||
internal TextureFont font;
|
internal TextureFont font;
|
||||||
|
protected bool disposed;
|
||||||
|
|
||||||
|
#region public override string ToString()
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a System.String that represents the current TextHandle.
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>a System.String that descibes the current TextHandle.</returns>
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return String.Format("TextHandle: {0}", Handle);
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue