Added TextPrinter.Draw() for dynamic text. Not implemented yet.

This commit is contained in:
the_fiddler 2007-11-12 07:39:56 +00:00
parent 8db2411038
commit 726ddbf0c2
2 changed files with 12 additions and 1 deletions

View file

@ -21,6 +21,7 @@ namespace OpenTK.Fonts
void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp, StringAlignment alignment); void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp, StringAlignment alignment);
void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp, StringAlignment alignment, bool rightToLeft); void Prepare(string text, TextureFont font, out TextHandle handle, float width, bool wordWarp, StringAlignment alignment, bool rightToLeft);
void Draw(TextHandle handle); void Draw(TextHandle handle);
void Draw(string text, TextureFont font);
void Begin(); void Begin();
void End(); void End();
} }

View file

@ -239,7 +239,17 @@ namespace OpenTK.Fonts
#endregion #endregion
#region public void Draw(string text) #region public void Draw(string text, TextureFont font)
/// <summary>
/// Draws dynamic text without caching. Not implemented yet!
/// </summary>
/// <param name="text">The System.String to draw.</param>
/// <param name="font">The OpenTK.Fonts.TextureFont to draw the text in.</param>
public void Draw(string text, TextureFont font)
{
throw new NotImplementedException();
}
#endregion #endregion