kc3-lang/ftgl/demo/FTGLDemo.cpp

Branch :


Log

Author Commit Date CI Message
1a9ee361 2009-07-19 15:13:40 Add help and font size indicator to FTGLDemo, courtesy of Bzflag's developer jwmelto.
cab1fafd 2009-07-19 13:05:50 Update my e-mail address everywhere.
ae1656f5 2008-08-05 15:18:50 unsigned int, thx bulletcatcher
03663110 2008-06-13 21:16:09 make windows use the FONT_FILE mechanism for setting default font in demos also, no reason to special-case it. add standard license verbage to msvc config.h. tack a copyright notice on a couple files I made significant changes to.
6c2a187c 2008-06-08 15:56:35 * Revert the FTFont::Advance() and FTGlyph::Advance() improvements. After discussion, I was convinced they were not worth the backwards compatibility breakage. They now return float again, instead of FTPoint.
cdc9b560 2008-06-03 12:23:07 * Coding style: remove tabs and trailing spaces, wrap long lines.
84869ec7 2008-05-23 00:46:08 * Provide a helper class for walking potentially-multibyte unicode strings. * Provide support for multibyte encodings (UTF-8, UTF-16) in FTFont and derived classes, and in FTSimpleLayout. * Put a few UTF-8 strings in non-latin codeplanes in FTGLDemo (toggle at compile-time) for testing. * FTSimpleLayout should be tested extensively before release. I would be surprised if I didn't break at least one unusual use case.
7eab0746 2008-05-21 10:11:38 * Add FTBufferFont to the complex FTGL demo.
150528ab 2008-05-12 14:11:45 * The examples now use FONT_FILE if it was found by the configure step.
55dc91e0 2008-05-11 21:43:10 * Added optional position and string length to the Layout methods.
20ac99b1 2008-05-11 11:28:08 * FTFont::Advance(), FTFont::Render() and FTFont::BBox() are now far more powerful, allowing for substring display and extra spacing between characters.
eb0df25b 2008-05-09 15:41:15 reference a font that actually exists.. alas we do not all have a /Users/henry/Development directory. at least this one will exist if X11 is installed.
4f44ec81 2008-05-07 15:01:47 * Make all BBox functions return an FTBBox object instead of doing countless conversions to floats or arrays of floats.
ab4586ca 2008-05-01 09:45:14 * Update demos and unit tests so that they use the newly named types.
2aa2aeb5 2008-04-30 16:27:34 * Move include/* to src/FTGL/* so the files in there can directly be referred to as "FTGL/*.h". This is convenient because they will be installed in a similar location. * Put a warning in each legacy public header to advise users to only include the generic <FTGL/ftgl.h> header instead.
1f4a94f8 2008-04-29 14:39:28 * Since the MIT license is LGPL-compatible, there is no real point in shipping FTGL under a dual license. Consequently removing LGPL references from the code, in agreement with Sean.
c96146ed 2008-04-29 06:44:51 * Moved header files that are not required by library clients into src/ so that they do not get installed. * Created an ftgl.h header that allows clients to #include <FTGL/ftgl.h> and be done with it.
aaf4b59d 2008-04-27 09:52:41 * Various fixes and improvements to the demo, by Eric Beets and myself.
75c73099 2008-04-23 21:23:59 * Fix most compilation warnings. Most frequent causes: shadow declarations and const qualifier disappearances.
0007128c 2008-04-23 12:12:51 * Cosmetic changes to FTGLDemo: bigger font, layout-compliant text, filtered textures.
26da265c 2008-04-23 09:51:14 * Check for <GL/glut.h> and <GLUT/glut.h> during the configure step instead of guessing their location at build time.
9ae936f3 2008-04-22 23:47:24 * C bindings for the FTLayout interface. Code by Eric Beets.
15d3cad5 2008-04-22 17:06:49 * Fix FTTextureGlyph rendering offset so that it works with layouts.
c4650043 2008-04-22 16:45:30 * Fix the demo program so that it uses the FTTextureFont class.
123c5972 2008-04-22 16:42:55 * Slightly tune the demo to show the new FTGL::RENDER_FRONT and RENDER_SIDE features.
4c6f87b9 2008-04-21 21:48:37 * Fine tune the demo so that the extrude mode shows the outset results.
952ab5dc 2008-04-14 14:22:18 * Made the FTGLDemo and FTGLMFontDemo coding style consistent with the rest of the code.
87609beb 2008-04-13 22:13:44 * Added copyright and license information to recently merged files.
d6a2d851 2008-04-13 21:14:44 * Merged trunk commits [664], [665], [666], [667], [669], [670], [671], [672] and [684], by patrick and henry: + Added FTLayout.h, FTSimpleLayout.h and FTSimpleLayout.cpp to implement a framework for layout managers and an implementation of a simple layout manager. + Updated FTGLDemo to use the new FTSimpleLayout. Changes include: - Added a font origin to specify the location to render the font. - The default text is now blatantly plagarized from the back cover of the OGL red book. - The font size is much smaller. - Font metrics are rendered differently depending on the current layout manager. - The FTSimpleLayout alignment mode is now output with other font information. - The space bar no longer cycles through the fonts. The cursor up/down keys do. - The cursor left/right keys increment/decrement the size of the current font. - The page up/page down keys cycle through the layout managers. - The home/end keys increment and decrement the line length of a simple layout - The tab key cycles through the alignment modes of a simple layout. + Fixed a bug where the trackball rotation was applied after translation. + Minor reformatting and enabled texture fonts to be selected + Un-inlined private methods...because they are called by other private inlined methods + Minor formatting changes + Adding FTLayout
0b8db902 2008-04-12 22:41:39 * Fix an undefined operation in the FTGL demo.
7c358859 2008-04-04 12:43:38 * Generate a config.h file instead of passing all defines in the compiler command line. * "make install" now properly installs the includes, the documentation and the .pc file. * Generate a shared library.
4d10d9d0 2008-04-04 11:19:57 * Put standard system headers first because on Windows glut.h uses exit().
a0614cd3 2008-04-04 09:20:40 * Fix an illegal cast of a static string to a char* (has to be char const*).
7682e585 2004-09-18 11:25:09 Added demonstration of texture co-ordinate generation.
2a980faa 2004-08-22 05:50:33 Removed unnecessary translates in the glyph rendering code.
3f033ecf 2003-05-03 05:45:13 Changed MAC font path
112ded61 2003-04-06 23:47:27 Minor reformatting and enabled texture fonts to be selected
616a1574 2003-04-06 21:56:04 Fixed a bug where the trackball rotation was applied after translation.
d70b194d 2003-04-06 20:51:38 Updated FTGLDemo to use the new FTSimpleLayout. Changes include: - Added a font origin to specify the location to render the font. - The default text is now blatantly plagarized from the back cover of the OGL red book. - The font size is much smaller. - Font metrics are rendered differently depending on the current layout manager. - The FTSimpleLayout alignment mode is now output with other font information. - The space bar no longer cycles through the fonts. The cursor up/down keys do. - The cursor left/right keys increment/decrement the size of the current font. - The page up/page down keys cycle through the layout managers. - The home/end keys increment and decrement the line length of a simple layout - The tab key cycles through the alignment modes of a simple layout.
ac4c33f8 2003-04-06 20:36:43 Updated FTGLDemo to use the new FTSimpleLayout. Changes include: - Added a font origin to specify the location to render the font. - The default text is now blatantly plagarized from the back cover of the OGL red book. - The font size is much smaller. - Font metrics are rendered differently depending on the current layout manager. - The FTSimpleLayout alignement - The space bar no longer cycles through the fonts. The cursor up/down keys
6fcea409 2003-01-20 13:58:28 Expect a fontfile on the command line, fall back to a default one on systems where a default is known -- else complain about the missing parameter. Come to think of it, I could use a PS font on IRIX. I'll look into that later.
812361ee 2002-12-21 09:09:50 Changed int to float in glRasterPos
f31295ad 2002-12-17 09:10:33 Changed render to Render
9e37db56 2002-12-17 08:18:23 Changed mac font path to test directory
59259511 2002-12-16 08:27:39 Refactored FTFont to get rid of Open function
e59da05e 2002-12-05 06:47:30 Fixed path
a31de491 2002-12-02 06:32:46 Rewriting to make it more 'correct'
5fdcdcb8 2002-11-28 08:01:38 Removed some redundant code
a289e4ec 2002-06-21 08:22:34 Added hash define for windows fonts
1fc86b8b 2002-02-16 05:12:09 Renamed from *.c to *.cpp