Commit graph

34 commits

Author SHA1 Message Date
the_fiddler 28f0a59249 Removed two warnings. 2008-07-04 16:41:17 +00:00
the_fiddler 1e6a61e1e1 Use StringFormat.GenericDefault when loading glyphs, to account for overhangs (especially visible in e.g. italics).
Remove an unused variable in MeasureText.
2008-07-01 18:50:49 +00:00
the_fiddler 097e3f37db Reverted StringFormat.GenericDefault change.
Explicitly specified StringFormat.GenericTypographic when rasterizing glyphs, to avoid mismatch between rasterization and measuring.
2008-06-29 10:56:51 +00:00
the_fiddler c230cfa3b2 Use GenericDefault instead of GenericTypographic for MeasureCharacterRanges, in order to correctly calculate the bounding boxes of glyphs and strings. 2008-06-28 17:44:24 +00:00
the_fiddler a20b8407a2 Fixed clipping issues with font layout.
Improved glyph loading speed.
Fixed text measurement.
2008-06-24 20:35:37 +00:00
the_fiddler 8d0e358569 Added a region directive to conform to OpenTK standards. 2008-06-24 18:29:11 +00:00
the_fiddler f347036a6b Now use the new MeasureText function. 2008-06-24 18:29:02 +00:00
the_fiddler f2ac359999 Renamed MeasureCharacterRanges to MeasureText.
Sped up MeasureText.
Added MeasureText overloads.
Obsoleted MeasureString function.
2008-06-24 18:27:51 +00:00
the_fiddler 768dd51e74 Corrected two while loops (they should have been plain if-statements, not loops). 2008-06-22 16:31:48 +00:00
the_fiddler f40073b1b9 Corrected a stupid error where MeasureCharacterRanges was called with incorrect parameters. 2008-06-22 16:31:00 +00:00
the_fiddler 4b47612234 Updated TextPrinter.PerformLayout to use the new GdiPlus-based MeasureCharacterRanges function. 2008-06-22 16:30:01 +00:00
the_fiddler 314bec1c66 Implemented MeasureCharacterRanges function using the new GdiPlus bindings. 2008-06-22 16:29:13 +00:00
the_fiddler 724296dc65 Removed unnecessary memory allocations.
Removed out-of-date comment.
2008-06-21 23:24:24 +00:00
the_fiddler 71fda048a6 Improved code layout. Added #region directives. 2008-06-21 23:23:33 +00:00
the_fiddler da15592dd4 Fixed some code-style issues. 2008-06-21 20:46:31 +00:00
the_fiddler c63102621f Added protected and public getters and setters to TextHandle. 2008-05-24 07:52:36 +00:00
the_fiddler b98fe61653 Allow the user to code his own ITextPrinterImplementation. 2008-05-24 07:47:30 +00:00
the_fiddler 47b0d1f0fe * TextPrinter.cs: Updated licensing information and fixed some spacing
problems.
2008-05-05 17:13:22 +00:00
the_fiddler e2653a5918 Added assembly information. 2008-05-04 16:54:43 +00:00
the_fiddler d83a3ce6f9 Should only call GL.PopAttrib() once in TextPrinter.End() 2008-04-17 22:41:27 +00:00
the_fiddler 44729f595e Added 1 pixel to packing distances - seems to reduce packing artifacts at the seams. 2008-04-13 18:43:58 +00:00
the_fiddler 40b074179e Fixed dynamic text rendering when no text is precached at all. 2008-04-13 18:29:36 +00:00
the_fiddler fb13f49a85 Moved OpenTK.Graphics.OpenGL to OpenTK.Graphics. 2008-04-13 16:45:56 +00:00
the_fiddler 9e2455bf3b Moved TexturePacker to OpenTK.Utilities. 2008-04-13 16:37:32 +00:00
the_fiddler e6bfaa28ef Added a missing xml doc to the Dispose method. 2008-04-11 18:22:41 +00:00
the_fiddler a21dcfd659 Renamed AudioLoader and WaveLoader to AudioReader and WaveReader. 2008-04-06 14:32:59 +00:00
the_fiddler 0363d899d7 Renamed SoundReader to AudioLoader and WaveReader to WaveLoader. 2008-04-06 14:31:11 +00:00
the_fiddler 2fa1330f3b Fixed SoundReader prermissions.
Fixed a problem with SoundReader.EndOfFile.
Removed a Dispose() call i Playback.cs (was not necessecary).
Streaming code updates.
2008-04-04 22:14:42 +00:00
the_fiddler 224f917a49 Added licenses. 2008-04-04 21:05:03 +00:00
the_fiddler 7001076f5a Moved OpenTK.OpenAL to OpenTK.Audio.
Added SoundReader class.
Added OpenTK.Math.Functions.NextPowerOfTwo 
Fixed several AL functions, and added overloads to AL.BufferData.
Added OpenAL wave playback sample.
2008-04-04 19:46:08 +00:00
the_fiddler d15062a6f5 Push/Pop AttribMask.ColorBufferBit in TextPrinter.Begin/End
float[] viewport should have 4 members, not 6.
2008-03-13 09:34:09 +00:00
the_fiddler 1e397fcee5 Moved OpenTK.Fonts to OpenTK.Graphics namespace. 2008-03-08 14:38:10 +00:00
the_fiddler ca68971695 Moved OpenTK.Fonts to from OpenTK OpenTK.Utilities.
Added OpenTK.Utilities.dll reference to Examples.
Moved assembly-level attributes from GameWindow.cs to Configuration.cs.
2008-03-08 14:06:59 +00:00
the_fiddler bef88dfc6e Added OpenTK.Utilities assembly. 2008-02-23 23:05:25 +00:00