Commit graph

42 commits

Author SHA1 Message Date
the_fiddler
1bdc6b6634 Added missing XML docs. 2009-06-28 10:49:10 +00:00
the_fiddler
a7363b54e6 Removed OpenTK.Math namespace. Math functions now go directly into the OpenTK namespace. 2009-06-25 11:42:05 +00:00
the_fiddler
7b85450e9b Fixed a large number of XML documentation warnings. 2009-05-17 15:06:26 +00:00
the_fiddler
3d90312109 * Fonts/IFont.cs: marked as obsolete. 2009-03-25 21:49:52 +00:00
the_fiddler
a22019d890 Normalize line endings and set the mime-type=text/plain and eol-style=native properties on all files. 2009-02-22 10:43:35 +00:00
the_fiddler
27c3f3b0ce Obsoleted old implementation and added compatibility layer to the new ITextPrinter. 2008-11-25 18:17:30 +00:00
the_fiddler
4ca288bc87 Moved to Graphics folder along with the rest of the implementation. 2008-11-25 18:05:10 +00:00
the_fiddler
d3b57e6c5a Removed the old TextPrinter implementation. 2008-11-25 18:00:17 +00:00
the_fiddler
732a602578 Added TextPrinterOptions.Default. 2008-11-25 17:24:40 +00:00
the_fiddler
fa12673450 Updated ITextPrinter interface for the new implementation. 2008-11-25 17:16:57 +00:00
the_fiddler
8e7348d085 Add missing Measure methods. 2008-11-25 16:11:31 +00:00
the_fiddler
a57eb8f647 First public commit of the new text renderer (WIP implementation). 2008-11-24 16:43:56 +00:00
the_fiddler
5f483b5298 Prevent LoadGlyph from thrashing the PixelStore attribute. 2008-11-19 18:00:28 +00:00
the_fiddler
dc9b12eda7 Fixed handling of multiple newlines.
Removed unused code.
2008-11-18 19:27:26 +00:00
the_fiddler
b931dffdbd Fall back to Clamp, if ClampToEdge is not supported. 2008-11-18 12:44:52 +00:00
the_fiddler
44044ea415 Removed debug print statements. 2008-11-14 00:09:47 +00:00
the_fiddler
912e5c873e Whitespace is now ignored when rendering text (slight performance improvement).
Text now split into lines before measuring, to avoid buggy Mono GDI+ implementation.
Pixel unpack attribute is now used optimize glyph uploading.
Added ClampToEdge attribute to the font sheet.
2008-11-14 00:00:54 +00:00
the_fiddler
8146fdcc5c General cleanup:
Glyph is now a struct.
Code layout follows OpenTK format.
Added missing doc-strings.
2008-07-04 19:23:12 +00:00
the_fiddler
486a3cf645 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
ee34df5b16 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
d7173edb60 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
856551e212 Fixed clipping issues with font layout.
Improved glyph loading speed.
Fixed text measurement.
2008-06-24 20:35:37 +00:00
the_fiddler
a52666d9e6 Now use the new MeasureText function. 2008-06-24 18:29:02 +00:00
the_fiddler
c0803a2e03 Renamed MeasureCharacterRanges to MeasureText.
Sped up MeasureText.
Added MeasureText overloads.
Obsoleted MeasureString function.
2008-06-24 18:27:51 +00:00
the_fiddler
3e6a2e4e9b Corrected two while loops (they should have been plain if-statements, not loops). 2008-06-22 16:31:48 +00:00
the_fiddler
426cb6432d Corrected a stupid error where MeasureCharacterRanges was called with incorrect parameters. 2008-06-22 16:31:00 +00:00
the_fiddler
8e4287b46e Updated TextPrinter.PerformLayout to use the new GdiPlus-based MeasureCharacterRanges function. 2008-06-22 16:30:01 +00:00
the_fiddler
6801dc3e94 Implemented MeasureCharacterRanges function using the new GdiPlus bindings. 2008-06-22 16:29:13 +00:00
the_fiddler
fa0e5ee0d0 Removed unnecessary memory allocations.
Removed out-of-date comment.
2008-06-21 23:24:24 +00:00
the_fiddler
80020a02f1 Improved code layout. Added #region directives. 2008-06-21 23:23:33 +00:00
the_fiddler
bf8a555bc9 Fixed some code-style issues. 2008-06-21 20:46:31 +00:00
the_fiddler
84d1a13355 Added protected and public getters and setters to TextHandle. 2008-05-24 07:52:36 +00:00
the_fiddler
6ce200cdae Allow the user to code his own ITextPrinterImplementation. 2008-05-24 07:47:30 +00:00
the_fiddler
7920b65ac4 * TextPrinter.cs: Updated licensing information and fixed some spacing
problems.
2008-05-05 17:13:22 +00:00
the_fiddler
d154c7fe0b Should only call GL.PopAttrib() once in TextPrinter.End() 2008-04-17 22:41:27 +00:00
the_fiddler
4eca16d79f Fixed dynamic text rendering when no text is precached at all. 2008-04-13 18:29:36 +00:00
the_fiddler
57b097f7d0 Moved OpenTK.Graphics.OpenGL to OpenTK.Graphics. 2008-04-13 16:45:56 +00:00
the_fiddler
a2ed57a157 Added a missing xml doc to the Dispose method. 2008-04-11 18:22:41 +00:00
the_fiddler
5ff51ba9fe 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
9d1f1ecc4c 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
ef16a9d296 Moved OpenTK.Fonts to OpenTK.Graphics namespace. 2008-03-08 14:38:10 +00:00
the_fiddler
7751c07e6f 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