diff --git a/Documentation/Changelog.txt b/Documentation/Changelog.txt index 6ad3da8b..ae3eea73 100644 --- a/Documentation/Changelog.txt +++ b/Documentation/Changelog.txt @@ -27,9 +27,14 @@ OpenTK 0.9.0 -> 0.9.1 + Platform.X11 + Simplified input handling. + Fonts + + Moved to OpenTK.Utilities. + + + OpenTK.Utilities + + Fonts + + Moved to OpenTK.Graphics from OpenTK.Fonts. + Implemented immediate text printing (without caching). - + Improved space width calculation. - + Fixed TextureFont.MeasureString calculation. + + Improved width calculation for space characters. + + Fixed width calucalated by TextureFont.MeasureString. + Examples + Added GluTessellator example. diff --git a/Source/Examples/Tutorial/Fonts.cs b/Source/Examples/Tutorial/Fonts.cs index dd783393..d1752c9e 100644 --- a/Source/Examples/Tutorial/Fonts.cs +++ b/Source/Examples/Tutorial/Fonts.cs @@ -10,7 +10,7 @@ using System.Text; using System.Drawing; using OpenTK; -using OpenTK.Fonts; +using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; using OpenTK.Input; using System.IO; diff --git a/Source/Examples/Tutorial/T01_Simple_Window.cs b/Source/Examples/Tutorial/T01_Simple_Window.cs index b78e2913..3323116f 100644 --- a/Source/Examples/Tutorial/T01_Simple_Window.cs +++ b/Source/Examples/Tutorial/T01_Simple_Window.cs @@ -12,7 +12,7 @@ using System.Diagnostics; using OpenTK; using OpenTK.Graphics.OpenGL; -using OpenTK.Fonts; +using OpenTK.Graphics; using OpenTK.Graphics.OpenGL.Enums; using OpenTK.Input; diff --git a/Source/Examples/Tutorial/T02_Vertex_Arrays.cs b/Source/Examples/Tutorial/T02_Vertex_Arrays.cs index 94e245ca..860d10bd 100644 --- a/Source/Examples/Tutorial/T02_Vertex_Arrays.cs +++ b/Source/Examples/Tutorial/T02_Vertex_Arrays.cs @@ -14,7 +14,7 @@ using OpenTK; using OpenTK.Graphics.OpenGL; using System.Diagnostics; using OpenTK.Input; -using OpenTK.Fonts; +using OpenTK.Graphics; using OpenTK.Graphics.OpenGL.Enums; namespace Examples.Tutorial diff --git a/Source/Examples/Tutorial/Text.cs b/Source/Examples/Tutorial/Text.cs index e933cd49..1bb7505e 100644 --- a/Source/Examples/Tutorial/Text.cs +++ b/Source/Examples/Tutorial/Text.cs @@ -11,7 +11,7 @@ using System.IO; using System.Drawing; using OpenTK; -using OpenTK.Fonts; +using OpenTK.Graphics; using OpenTK.Graphics.OpenGL; using OpenTK.Input; using OpenTK.Graphics.OpenGL.Enums; diff --git a/Source/Examples/Tutorial/Textures.cs b/Source/Examples/Tutorial/Textures.cs index 2a029b25..f924e351 100644 --- a/Source/Examples/Tutorial/Textures.cs +++ b/Source/Examples/Tutorial/Textures.cs @@ -15,7 +15,7 @@ using System.Drawing.Imaging; using OpenTK; using OpenTK.Graphics.OpenGL; -using OpenTK.Fonts; +using OpenTK.Graphics; using OpenTK.Graphics.OpenGL.Enums; namespace Examples.Tutorial diff --git a/Source/Utilities/Fonts/DisplayListTextHandle.cs b/Source/Utilities/Fonts/DisplayListTextHandle.cs index 01717a16..192c8c7d 100644 --- a/Source/Utilities/Fonts/DisplayListTextHandle.cs +++ b/Source/Utilities/Fonts/DisplayListTextHandle.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text; using OpenTK.Graphics.OpenGL; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { class DisplayListTextHandle : TextHandle { diff --git a/Source/Utilities/Fonts/DisplayListTextPrinter.cs b/Source/Utilities/Fonts/DisplayListTextPrinter.cs index 4e36c973..5958dc35 100644 --- a/Source/Utilities/Fonts/DisplayListTextPrinter.cs +++ b/Source/Utilities/Fonts/DisplayListTextPrinter.cs @@ -11,7 +11,7 @@ using System.Text; using OpenTK.Graphics.OpenGL; using OpenTK.Math; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { /// /// Provides text printing through OpenGL 1.1 Display Lists. diff --git a/Source/Utilities/Fonts/Glyph.cs b/Source/Utilities/Fonts/Glyph.cs index 4da90a70..ee516228 100644 --- a/Source/Utilities/Fonts/Glyph.cs +++ b/Source/Utilities/Fonts/Glyph.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text; using System.Drawing; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { using Graphics = System.Drawing.Graphics; diff --git a/Source/Utilities/Fonts/IFont.cs b/Source/Utilities/Fonts/IFont.cs index 2fba6ce1..96e2b320 100644 --- a/Source/Utilities/Fonts/IFont.cs +++ b/Source/Utilities/Fonts/IFont.cs @@ -10,7 +10,7 @@ using System.Text; using OpenTK.Math; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { public interface IFont : IDisposable { diff --git a/Source/Utilities/Fonts/IPrinterImplementation.cs b/Source/Utilities/Fonts/IPrinterImplementation.cs index cf608008..1b332c9c 100644 --- a/Source/Utilities/Fonts/IPrinterImplementation.cs +++ b/Source/Utilities/Fonts/IPrinterImplementation.cs @@ -10,7 +10,7 @@ using System.Text; using OpenTK.Math; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { /// /// Defines the interface for TextPrinter implementations. diff --git a/Source/Utilities/Fonts/ITextPrinter.cs b/Source/Utilities/Fonts/ITextPrinter.cs index 32d13881..00193ca7 100644 --- a/Source/Utilities/Fonts/ITextPrinter.cs +++ b/Source/Utilities/Fonts/ITextPrinter.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.Text; using System.Drawing; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { /// /// Defines the interface for a TextPrinter. diff --git a/Source/Utilities/Fonts/TextHandle.cs b/Source/Utilities/Fonts/TextHandle.cs index f88c8708..fc7c4d75 100644 --- a/Source/Utilities/Fonts/TextHandle.cs +++ b/Source/Utilities/Fonts/TextHandle.cs @@ -8,7 +8,7 @@ using System; using System.Collections.Generic; using System.Text; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { /// /// Represents a handle to cached text. @@ -21,7 +21,7 @@ namespace OpenTK.Fonts } /// - /// The handle of the cached text. Call the OpenTK.Fonts.ITextPrinter.Draw() method + /// The handle of the cached text. Call the OpenTK.Graphics.ITextPrinter.Draw() method /// to draw the text represented by this TextHandle. /// public readonly int Handle; diff --git a/Source/Utilities/Fonts/TextPrinter.cs b/Source/Utilities/Fonts/TextPrinter.cs index eb7854a2..c7fad20c 100644 --- a/Source/Utilities/Fonts/TextPrinter.cs +++ b/Source/Utilities/Fonts/TextPrinter.cs @@ -16,7 +16,9 @@ using OpenTK.Graphics.OpenGL; using OpenTK.Graphics.OpenGL.Enums; using System.Diagnostics; -namespace OpenTK.Fonts +namespace OpenTK.Fonts { } + +namespace OpenTK.Graphics { /// /// Provides methods to perform layout and print hardware accelerated text. @@ -271,7 +273,7 @@ namespace OpenTK.Fonts /// Draws dynamic text without caching. Not implemented yet! /// /// The System.String to draw. - /// The OpenTK.Fonts.TextureFont to draw the text in. + /// The OpenTK.Graphics.TextureFont to draw the text in. public void Draw(string text, TextureFont font) { int num_indices; diff --git a/Source/Utilities/Fonts/TextureFont.cs b/Source/Utilities/Fonts/TextureFont.cs index 52e7d732..5139980c 100644 --- a/Source/Utilities/Fonts/TextureFont.cs +++ b/Source/Utilities/Fonts/TextureFont.cs @@ -18,7 +18,7 @@ using OpenTK.Graphics.OpenGL; using OpenTK.Graphics.OpenGL.Enums; using OpenTK.Platform; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { using Graphics = System.Drawing.Graphics; using PixelFormat = OpenTK.Graphics.OpenGL.PixelFormat; @@ -327,7 +327,7 @@ namespace OpenTK.Fonts bool disposed; /// - /// Releases all resources used by this OpenTK.Fonts.TextureFont. + /// Releases all resources used by this OpenTK.Graphics.TextureFont. /// public void Dispose() { diff --git a/Source/Utilities/Fonts/VboTextPrinter.cs b/Source/Utilities/Fonts/VboTextPrinter.cs index 6b85b970..3c4a5731 100644 --- a/Source/Utilities/Fonts/VboTextPrinter.cs +++ b/Source/Utilities/Fonts/VboTextPrinter.cs @@ -12,7 +12,7 @@ using System.Runtime.InteropServices; using OpenTK.Graphics.OpenGL; using OpenTK.Math; -namespace OpenTK.Fonts +namespace OpenTK.Graphics { /// /// Provides text printing through OpenGL 1.5 vertex buffer objects.