summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilefont.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove unnecessary includes from header files.Jay3.14152012-10-231-4/+3
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Use std namespace.Raphael Langella2012-08-261-1/+1
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* added proper unicode support at the cost of some memory overheadfrogbotherer2012-06-251-2/+2
| | | | | | | | | | | | | | | | The maximum number of glyphs is fixed at 256, (which is enough for languages with latin-like characters), but is easily increased via some constants in fontwrapper-ft.cc, with a memory trade-off. Features of this code: - any character in the font can be rendered - if crawl tries to render more than the max number of glyphs, it will crash - if crawl tries to render a glyph not in the font, an upside-down question mark will be printed instead - for each fontwrapper instance (font face, size and attributes), this keeps an array of pixels and an equivalent texture in memory for 256 possible glyphs. This is why increasing the number of available glyphs pushes memory use up
* Doxygenization and junk purging that was missed by my script.Adam Borowski2011-04-021-5/+0
|
* Merge branch 'master' into unicodeAdam Borowski2011-01-111-1/+1
|\ | | | | | | Conflicts galore...
| * Fix the struct/class clang warnings for tiles, too.Adam Borowski2011-01-081-1/+1
| | | | | | | | I'm unable to test optimized builds as clang (trunk) crashes during compilation.
* | Let tiles output our UTF-8 encoded strings -- only the ISO-8859-1 subset for ↵Adam Borowski2010-09-271-2/+2
|/ | | | | | now. Word wrapping is yet to be corrected, just like in other UIs.
* Remove extra semicolons (Luca).Robert Vollmert2010-07-291-1/+1
|
* Reduce dependencies on tilereg.h.Enne Walker2010-04-251-0/+1
| | | | | This was done by pushing ImageManager to tiletex.h, where it better belongs.
* Comment cleanup.Enne Walker2010-04-241-10/+0
|
* Move specific create funcs out of generic files.Enne Walker2010-04-241-1/+3
| | | | | | | glwrapper-ogl.cc, windowmanager-sdl.cc, and fontwrapper-ft.cc now contain the static functions for their parent class's factory create. This allows new implementations to be added without requiring modification of the generic file (with #ifdefs).
* General coding standards update.Enne Walker2010-04-241-22/+22
| | | | | | No spaces on parens. Line up function params. Sort includes more rationally. Put curly braces on their own line. Don't C-style typedef enum and structs. Put if-clauses on their own line.
* Declaired certain member functions const.Ixtli2010-04-241-7/+7
|
* Created FontWrapper, and made FT flag in makefile.Ixtli2010-04-241-58/+37
|
* Adds support for mouse and arrow operable menusJanne Lahdenpera2010-03-291-0/+2
| | | | | | | | | | | Provides implementation that allows multiple types of CRTregions for tiles. Provides implementation of a menu that allows total freedom of entry placement. Uses these assets provided to change the Species and Background menus to allow mouse and arrow-keys selection. Also provides support for adding descriptions to menu entries. Signed-off-by: Janne Lahdenpera <felirx@gmail.com> Signed-off-by: Robert Vollmert <rvollmert@gmx.net>
* Experimentally draw tool tip below the mouse pointer rather than above.Johanna Ploog2010-01-111-1/+2
| | | | | It's a bit less distracting this way and doesn't cover up the inventory header line (description).
* Remove AppHdr.h from header filesMatthew Cline2009-11-011-1/+0
| | | | | gcc precompiled headers didn't work properly if AppHdr.h was included in include files, or included twice.
* tilefont.{cc,h}: eliminate "array subscript is of type 'char'" warningsSteven Noonan2009-10-251-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Setting all .h/.cc files in source to have a consistent keyword propset.ennewalker2009-01-041-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8218 c06c8d41-db1a-0410-9941-cceddc491573
* More graphical menu improvements. Inventory menus now have columns. Long ↵ennewalker2008-10-251-0/+14
| | | | | | entries are now wrapped and then truncated. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7296 c06c8d41-db1a-0410-9941-cceddc491573
* Support for inline graphics and mouse input on menus.ennewalker2008-10-161-0/+12
| | | | | | | Menus in the console version should be unchanged. Let me know if this is not the case. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7258 c06c8d41-db1a-0410-9941-cceddc491573
* Adding better outlines to fonts so that they are more readable.ennewalker2008-10-041-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7131 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2008-09-281-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573
* [2021067] Fixing font centering issues.ennewalker2008-07-241-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6655 c06c8d41-db1a-0410-9941-cceddc491573
* More configurable fonts for Tiles.ennewalker2008-07-241-2/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6654 c06c8d41-db1a-0410-9941-cceddc491573
* Large tiles-related changes. Platform-specific rendering removed and ↵ennewalker2008-07-151-0/+71
replaced with SDL/OpenGL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573