summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tiletex.h
Commit message (Collapse)AuthorAgeFilesLines
* Use std namespace.Raphael Langella2012-08-261-2/+2
| | | | | | | | | | | | | 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.
* Merge branch 'unicode-tiles'Adam Borowski2012-07-111-1/+1
|\ | | | | | | | | | | It lacks an actual font yet, but I realized we need to check if drivers people use actually support sub-textures -- and if not, there'll be some rethinking needed.
| * more efficient font rendering using glTexSubImage2Dfrogbotherer2012-07-081-1/+1
| |
* | Drop parentheses around scalar values in "return".Adam Borowski2012-07-051-2/+2
|/
* Make most of initialized data static.Adam Borowski2011-12-271-1/+0
| | | | | All or almost all of .data segment that is not referenced externally should be done.
* Implement dedicated Menu support for Webtiles.Florian Diebold2011-12-081-25/+0
| | | | | | This is just for menus using the Menu class. It means that the menu items are laid out in html on the client side, the menu size adapts to the window of each spectator, and scrolling is done client-side.
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Split icons out from main.png. Fixes #2981.Johanna Ploog2010-12-161-0/+1
| | | | This should also allow us to draw clouds beneath monsters.
* Remove special logic to bake identified items into the main texture.Enne Walker2010-06-101-1/+0
|
* Bring sanity to enums by making them diffable/patchable.Adam Borowski2010-06-081-1/+1
|
* Split dngn tile page into feat/floor/wall.Enne Walker2010-05-301-1/+5
| | | | | | Due to the set of coloured floors and walls, it was getting perilously large. The tiledef-dngn.h file now just indirectly calls the correct feat/floor/wall functions depending on which tile index is used.
* Split up tiles.h.Enne Walker2010-05-301-2/+0
| | | | | | Most of it has gone into tilepick.h, but also into enum.h and initfile.cc. Unlike tiles.h which was included everywhere, tilepick.h is now only a dependency of about half the files.
* Use tileidx_t for tile indices. Also, cleanup.Enne Walker2010-05-301-6/+6
| | | | | | | | This new type defines to unsigned int, but it cleans up a lot of the int/unsigned int/short confusion all over the codebase for tile indices. This commit also cleans up tiles code to use coord_def more and to change function signatures to pass const refs and non-const pointers.
* Reduce header dependencies on glwrapper.h.Enne Walker2010-05-141-1/+7
|
* Reduce dependencies on tilereg.h.Enne Walker2010-04-251-0/+14
| | | | | This was done by pushing ImageManager to tiletex.h, where it better belongs.
* General coding standards update.Enne Walker2010-04-241-1/+1
| | | | | | 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.
* Merged cgcontext into uiwrapper-sdlIxtli2010-04-241-4/+4
|
* Created FontWrapper, and made FT flag in makefile.Ixtli2010-04-241-0/+1
|
* Moved MipMapOptions to glwrapper for modularityIxtli2010-04-241-7/+0
|
* Tile transparency in water without overlays.Enne Walker2010-01-171-13/+28
| | | | | | | | | | | | | | | | | In order for jpeg's waves to work on deep water as well as shallow, we need to not use partially transparent overlays to simulate an actor or an item being submerged. Now, non-flying objects on water will be drawn transparently to blend with the water below. This should mostly look the same, except it will now work on top of waves and will not require a mask for each water type. As a nice side-effect, ghosts are now transparent again and the water on top of submerged objects now animates properly. See the comments in tilebuf.cc for details. The mask tile itself can be adjusted to change the water level, but the parameters to SubmergedTileBuffer will need to be changed to compensate depending on what the new art looks like.
* Adding spell images, rltiles build script, and a tileidx_spell function. ↵ennewalker2009-09-111-0/+1
| | | | | | There are quite a few spells that don't have images (marked as TODO in tileidx_spell) and about three images that are named "unknown" because I can't figure out what they map to. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10651 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix centaur/naga tiles not being displayed correctly in the characterj-p-e-g2009-07-031-6/+7
| | | | | | | | | | | | | | | | | selection menu. * Add dolls_data to player_save_info struct, to make it easier to read in per-character doll information once we get around to that. Including the tiledef files in externs.h is probably overkill, though, so we might want to move player_save_info into another header file. * Fix Xom's repel stair effect moving shops. * Fix decks granting permanent summons at low power (and only at low power). * Make default settings of the brand options consistent between init.txt and initfile.cc. * Update FAQ. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10086 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing centering of title screen image.ennewalker2009-04-211-0/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9671 c06c8d41-db1a-0410-9941-cceddc491573
* [2774528] Tiles splash screen.ennewalker2009-04-191-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9658 c06c8d41-db1a-0410-9941-cceddc491573
* Greatly improve 'V' command:j-p-e-g2009-03-101-3/+4
| | | | | | | | | | | | | | | * Add toggle to travel to items. (FR 2180269) (Basically copied from StashSearchMenu, but I couldn't work out how to change the title after the toggle.) * Display monster tiles, yay! * Space allowing, display monsters' description along with 'x' information. (Ironically, though this was copied from Tiles, it only works for ASCII at the moment.) * Right-shift all entry types by 1 instead of just InvEntry, so it's more consistent and looks better on the 'V' screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9409 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up tiles code to use the VertBuffer classes.ennewalker2009-01-081-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8321 c06c8d41-db1a-0410-9941-cceddc491573
* Tile menus now support multiple tiles per entry (see MenuEntry::get_tiles).ennewalker2009-01-031-1/+8
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8153 c06c8d41-db1a-0410-9941-cceddc491573
* Fixes for arena mode in tiles mode. It runs now, but there are still some ↵ennewalker2009-01-021-0/+1
| | | | | | | | | visual issues (error tiles) because env.show gets updated weirdly in arena mode. Tangentially related to fixing this, also cleaning up logic in view.cc to use grid2show, adding a number of asserts for tiles-related problems, adding error tiles for all textures, and fixing some incorrect logic about centering on the player instead of vgrdc. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8104 c06c8d41-db1a-0410-9941-cceddc491573
* Support for inline graphics and mouse input on menus.ennewalker2008-10-161-1/+1
| | | | | | | 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
* Add whitespace fixes.dolorous2008-09-281-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573
* Tiles mcache improvements. Monsters out of sight are now shown with their ↵ennewalker2008-09-061-4/+3
| | | | | | last seen equipment. Player ghosts are now drawn correctly again. Denzi's new 48x32 pandemonium demon tiles are now used. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6875 c06c8d41-db1a-0410-9941-cceddc491573
* RLTiles complete code rewrite: now much more robust and functional.ennewalker2008-08-231-2/+53
| | | | | | | | | | | | | Added PNG and non-palettized image input. Added PNG output. Added better tile packing and support for tiles of different sizes. Converted all BMPs to PNGs (for space and explicit transparency reasons.) Added the 48x32 pandemonium demon tiles, but these are not yet used in game. Added Bill B.'s portal tile (finally). The Win32 makefiles are not updated quite yet and thus will not build. Sorry. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6850 c06c8d41-db1a-0410-9941-cceddc491573
* Large tiles-related changes. Platform-specific rendering removed and ↵ennewalker2008-07-151-0/+60
replaced with SDL/OpenGL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573