summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilebuf.cc
Commit message (Collapse)AuthorAgeFilesLines
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* More formatting fixes for return (...);Neil Moore2013-11-151-1/+1
|
* Give cloud overlays an alpha gradientPete Hurst2013-05-251-0/+11
| | | | | This creates the effect that the top half of the engulfed character is emerging slightly out of the cloud.
* Implement cloud alpha overlay tiles layerPete Hurst2013-05-251-0/+7
| | | | | | | | | | | This works very well for the most part with two small problems: - Webtiles will not support this yet (in probability, this will stop any clouds showing in webtiles) - Floor items interact strangely and will draw over the top of clouds instead of behind them
* added autoexplore to touch tabsChris West2013-01-051-2/+2
|
* Drop a lot of unnecessary braces.Adam Borowski2012-10-241-2/+0
| | | | | The perl one-liner I use for this had a bug where it didn't match "else" at the end of a line (ie, most of the time).
* Scale the skill menu tiles.Raphael Langella2012-10-081-2/+3
| | | | | Scale up with the tile_cell_pixels option, and scale down when the resolution is too low (instead of disabling tiles).
* 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.
* Some more return deparenthesization.Adam Borowski2012-07-051-1/+1
|
* Drop pointless braces after if/for/while everywhere.Adam Borowski2012-04-201-2/+0
|
* First prototype of webtiles.Florian Diebold2011-06-261-1/+1
| | | | | | Conflicts: crawl-ref/source/startup.cc
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-6/+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.
* Fix tiles mingw warnings.Enne Walker2010-05-301-1/+1
|
* Use tileidx_t for tile indices. Also, cleanup.Enne Walker2010-05-301-4/+5
| | | | | | | | 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.
* Clean up GL code function parameters.Enne Walker2010-05-141-2/+2
| | | | | | | Remove any non-const-reference parameters. Change const pointer parameters to const reference parameters. Change all draw(NULL, NULL) calls to just draw(). Also, refactor to remove pretranslate and prescale parameters from draw calls.
* Remove "better water transparency" option.Enne Walker2010-05-141-91/+8
| | | | | | The amount of code complexity to draw ~6 extra transparent pixels isn't really worth it. Also, the fact that it can't be turned on by default due to bad OpenGL drivers means that few people are likely using it.
* Renaming struct GLWRect to be class GLWPrim.Enne Walker2010-05-141-6/+6
|
* Clean up storage of vertex colours in GLWRect.Enne Walker2010-05-141-3/+3
| | | | | | Storing member variable pointers to data, even const ones, is sketchy. Better to depend on compiler optimizations to eliminate redundant variable copies.
* Clean up unions in glwrapper.h.Enne Walker2010-05-141-1/+1
|
* Expose GL state to draw call API.Enne Walker2010-05-141-3/+1
| | | | | This avoids weird global state setting and then querying in the next function.
* Rename vert buffer 'push' to 'add' for clarity.Enne Walker2010-05-141-8/+8
|
* Code cleanup for triangles branch.Enne Walker2010-05-141-40/+22
| | | | Applying standards, simplifying code, removing redundant comments.
* Remove unused 'flush' option on buffer drawing.Enne Walker2010-05-141-3/+2
| | | | | It's not really used anywhere at this point, and it's better to call clear explicitly when the draw buffer needs to be refilled.
* Move static VColour definitions out of tilebuf.cc.Ixtli2010-05-141-7/+0
| | | | Signed-off-by: Enne Walker <enne.walker@gmail.com>
* Tilebuf now uses GLVertBuffer exclusively.Ixtli2010-05-141-279/+108
| | | | Signed-off-by: Enne Walker <enne.walker@gmail.com>
* Simplify tile buffer logic.Enne Walker2010-04-241-24/+8
| | | | No need to check for NULL translate and scale.
* General coding standards update.Enne Walker2010-04-241-24/+32
| | | | | | 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.
* Cleaned up unneeded whitespace on newline in tilebuff.ccIxtli2010-04-241-23/+23
|
* Created FontWrapper, and made FT flag in makefile.Ixtli2010-04-241-1/+1
|
* Made glwrapper use proper dynamic dispatch for modularity.Ixtli2010-04-241-8/+8
|
* More camel case to underscores_as_spacesIxtli2010-04-241-4/+4
|
* More coding standards changes. This time s/if\(/if\ \(/gIxtli2010-04-241-8/+8
|
* Added GLPrimitive to glwrapper, condenced all vert-drawing methods to ↵Ixtli2010-04-241-27/+66
| | | | | | drawGLPrimitives and then updated tilebuf, font, reg, and sdl to use it propperly. As well, tilebuf's VertBuffer::draw() method needed to be changed to allow passing to pre-render transformations (used in submerged tile rendering.)
* Integrated glwrapper into tilebuf.h/cc and tilereg.ccIxtli2010-04-241-57/+41
|
* Removed GLState and GLStateManager classes from tilebuf.cc/h and moved them ↵Ixtli2010-04-241-96/+12
| | | | to the new glwrapper files. Removed SDL_opengl from these files and instead have them call static members of the GLStateManager class.
* Removed unnecessary inclusion of SDL.h in tilebuf and tilefontIxtli2010-04-241-1/+5
|
* "make ASSERTS=y" to force assertion checks even in non-debug builds.Adam Borowski2010-03-301-1/+1
|
* [470] Fix opaque white shallow water in tiles.Enne Walker2010-02-071-35/+58
| | | | | | | | Alpha testing is apparently not a dependable feature of OpenGL. Instead, provide an alternate method of drawing submerged tiles that does not depend on it. The older (better looking, in my opinion) behavior can be enabled via an option. It's off by default, so that folks don't file bug reports about shallow water.
* Tile transparency in water without overlays.Enne Walker2010-01-171-38/+340
| | | | | | | | | | | | | | | | | 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.
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* fix 'DEBUG' macro usage consistencySteven Noonan2009-10-131-1/+1
| | | | | | | | | | | | | Sometimes we were doing #if DEBUG and others we were doing #ifdef DEBUG. If we mix both, we have problems: If the DEBUG macro isn't defined, the statement '#if DEBUG' doesn't really make sense logically, because 'DEBUG' has no value. And if we '#define DEBUG 0', then the '#ifdef DEBUG's become true statements. The easiest fix is to swap out the #ifs with #ifdefs. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: fix msvc compile breakageSteven Noonan2009-10-121-0/+4
| | | | | | MSVC is like a chimp with Down's syndrome. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* * Fix centaur/naga tiles not being displayed correctly in the characterj-p-e-g2009-07-031-3/+6
| | | | | | | | | | | | | | | | | 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
* Apply my previous commits to trunk: fewer uses of m_dirty, and aj-p-e-g2009-06-161-9/+9
| | | | | | | description for Sigmund. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9990 c06c8d41-db1a-0410-9941-cceddc491573
* [2498067] Fixing tiles menu graphics.ennewalker2009-01-101-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8399 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up tiles code to use the VertBuffer classes.ennewalker2009-01-081-35/+90
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8321 c06c8d41-db1a-0410-9941-cceddc491573
* 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
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2008-10-231-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7294 c06c8d41-db1a-0410-9941-cceddc491573