summaryrefslogtreecommitdiff
path: root/src/graphics.cpp
AgeCommit message (Collapse)AuthorFilesLines
2007-10-22Some insignificant small changes.Bjørn Lindeijer1-1/+1
2007-08-26Fixed fonts not being recolored by adding an explicit parameter to require it.Guillaume Melquiond1-2/+2
2007-08-25Removed dependency on Guichan's OpenGL library. Taken over image loading and ↵Guillaume Melquiond1-1/+12
handling. Reduced memory usage when using OpenGL. (Up to 95% reduction for some textures.)
2007-06-04Merged 0.0 changes from revision 3234 to 3317 to trunk.Bjørn Lindeijer1-2/+0
2006-12-11Merged 0.0 changes from revision 2825 to 2898 to trunk.Bjørn Lindeijer1-0/+3
2006-11-05Merged the definition of ImageRect into graphics.h.Bjørn Lindeijer1-2/+0
2006-07-19Merged new_animation branch until r2415 into trunk. Eugenio Favalli1-2/+4
2006-05-03Increased fps limit granularity and cleaned some code, fixed some xml ↵Eugenio Favalli1-11/+0
library name in Dev-C++ project file, switched version to 0.0.20.
2006-03-09Made all class members named like mClassMember.Björn Steinbrink1-3/+3
2005-10-09* Made Sprite into an interface implemented by both FloorItem and Being, whichBjørn Lindeijer1-16/+12
hook themselves into the map on construction. The improved fringe layer is working as expected now. * Made sure TMW compiles without warnings even when using "-Wconversion -Wshadow -Wcast-qual -Wwrite-strings -ansi -pedantic", lots of cleanups. * Added two new small tilesets that contain the desert tiles that are twice and three times the height of a normal tile. One well in new_3-1 has been converted to use the new double tiles for testing purposes.
2005-09-19Mostly code cleanups related to commits in past two days.Bjørn Lindeijer1-6/+0
* Replaced custom function FIND_PATH with AC_PATH_PROG, used for finding sdl-config. * Removed -lphysfs from Makefile.am which should be added automatically already. * Actually show the overweight message, and only show it once for each time weight goes above half the max weight. * Surfaces passed to SDL_BlitSurface shouldn't be locked according to the manual. * Minimal fps limit is now 10 fps. * Reverted change by Bertram that hardcoded the updatehost value.
2005-09-18Move the writing logic out of the Graphics class once again... Some cleanups ↵Björn Steinbrink1-44/+1
in the screenshot filename selection code.
2005-09-18Some minor optimizations.Yohann Ferreira1-7/+5
2005-09-18Removed unuseful comments. Made the saveScreenshots() function return a ↵Yohann Ferreira1-88/+5
correct value.
2005-09-18Made the saveScreenShot makes its screenshots under user home dir in *nices, ↵Yohann Ferreira1-1/+129
made it more C++ way to avoid a leak, and made it check for existence of a file with same name before writing; In that case the screenshot's number is incremented until it finds an adequate name.
2005-09-18Changed Graphics::saveScreenshot to Graphics::getScreenshot. Now using the ↵Björn Steinbrink1-89/+15
ImageWriter to save that screenshot.
2005-09-17configure.ac: Fix typo.Björn Steinbrink1-2/+3
src/Makefile.am: Remove useless (duplicate) -lpng. src/graphics.cpp: Add missing cstdarg header. src/net/messagein.cpp: Fix some funny looking preprocessor statement. src/net/messageout.cpp: Readd SDLnet header, for changed preprocessor stuff.
2005-09-172005-09-17 Duane Bailey <nayryeliab@gmail.com>Duane Bailey1-0/+100
* src/net/messagin.cpp, src/net/messageout.cpp, src/net/network.cpp: removed replaced MACOSX defines with big endian defines * src/graphics.cpp, src/graphics.h: added screenshot method * src/game.cpp: added code, so that when one presses 'alt-p' (for picture), it takes a screenshot and saves it to a png * src/Makefile.am, config.ac: added png library stuff
2005-08-25Use OpenGL's translation capabilites. Small cleanups.Björn Steinbrink1-19/+18
2005-08-25Made our drawImage() method respect the clip area from the guichan graphics ↵Björn Steinbrink1-0/+3
part. Removed some (now) obsolete code. Fixed compilation errors.
2005-08-18Semi-separated OpenGL and SDL graphics classes, improving OpenGL performance.Björn Steinbrink1-167/+18
2005-08-15Made the OpenGL related code fully #ifdef'ed.Björn Steinbrink1-21/+28
2005-08-14Started to fade out the useOpenGL global variable.Björn Steinbrink1-3/+2
2005-08-14Moved image drawing code into the graphics class.Björn Steinbrink1-3/+60
2005-08-14Make the wrapper functions in the Graphics class conditional on OpenGL support.Björn Steinbrink1-97/+77
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-2/+8
2005-08-10Moved knowledge about whether we use OpenGL into the Graphics class. Added ↵Björn Steinbrink1-0/+36
helper function for being creation to reduce code duplication. Some code simplifications.
2005-08-02Moved graphics setup code into the graphics class.Björn Steinbrink1-28/+101
2005-07-27Committing merging opengl and sdl part 3 by AndrejBjørn Lindeijer1-15/+25
2005-07-26OpenGL/SDL combined in the same exe. Not in the cutest way, but we'll find aBjørn Lindeijer1-4/+47
nicer approach after the release.
2005-07-16Updated changelog, got rid of remaining extern SDL_Surface *screen cases,Bjørn Lindeijer1-9/+13
fixed double free and cleaned up a bit.
2005-07-16Made Image/SubImage being drawn by Graphics. Removed some redundant code.Björn Steinbrink1-9/+36
2005-07-14Committed resource manager cleanup patch by Doener, and properly implementedBjørn Lindeijer1-28/+1
the custom mouse cursor option, which is now also dynamically changeable through the setup window.
2005-07-13* Committing some cleanups by DoenerBjørn Lindeijer1-6/+6
* Fixed some compiler warnings * Restored a USE_OPENGL check around OpenGL headers * Fixed error about FALSE not being defined * Fixed issue with font to become speechFont when the latter is not installed
2005-07-13readding ifdefsEugenio Favalli1-1/+4
2005-07-13- Adding the wonderful new font by Bjorn to speech and player namesEugenio Favalli1-22/+23
- Way to system cursor (now you can choose the original sdl cursor in config)
2005-07-11Committed header dependencies reducing patch by DoenerBjørn Lindeijer1-1/+3
2005-07-11Introducing new font, sans serif 8.Bjørn Lindeijer1-1/+1
2005-06-23Finishing resource manager ability to clean up resources. Still work to do onBjørn Lindeijer1-0/+2
resources other than images.
2005-06-21Image loader now automatically determines whether to use masked drawing orBjørn Lindeijer1-1/+1
an alpha layer.
2005-05-21Numerous things:Bjørn Lindeijer1-1/+0
* Fixed two non-virtual destructor warnings showing up with GCC 4. * Fixed OpenGL inventory text drawing that broke in last commit * Removed glClear cause screen is redrawn completely anyway * Fixed updating of buttons in inventory window * Made items.xml be loaded through resource manager.
2005-05-16Leave out OpenGL completely when not enabled.Bjørn Lindeijer1-0/+6
2005-05-14Added framerate limiter, off by default (0 means no limit)Bjørn Lindeijer1-0/+9
2005-05-14Hide mouse when the application doesn't have mouse focus.Bjørn Lindeijer1-3/+7
2005-05-02Made config.xml, tmw.log and chatlog.txt always appear in ~/.tmw on *nix.Bjørn Lindeijer1-2/+2
2005-04-18Ok, of course the biggest problem to solve with OpenGL integration is loadingBjørn Lindeijer1-8/+19
and rendering of images.
2005-03-25Moved datafiles in unified structure.Bjørn Lindeijer1-1/+1
2005-03-24logger...Yohann Ferreira1-1/+2
2005-03-03Separated graphic/graphic.cpp into graphics.cpp and engine.cpp.Bjørn Lindeijer1-0/+135