summaryrefslogtreecommitdiff
path: root/src/graphics.h
AgeCommit message (Collapse)AuthorFilesLines
2005-09-19Mostly code cleanups related to commits in past two days.Bjørn Lindeijer1-2/+2
* 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-7/+0
in the screenshot filename selection code.
2005-09-18Made the saveScreenShot makes its screenshots under user home dir in *nices, ↵Yohann Ferreira1-0/+7
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-2/+2
ImageWriter to save that screenshot.
2005-09-172005-09-17 Duane Bailey <nayryeliab@gmail.com>Duane Bailey1-0/+5
* 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-09-08Removed inclusion of malloc.h header as it doens't seem necessary and wasBjørn Lindeijer1-3/+10
problematic on FreeBSD.
2005-08-18Semi-separated OpenGL and SDL graphics classes, improving OpenGL performance.Björn Steinbrink1-45/+7
2005-08-15Made the OpenGL related code fully #ifdef'ed.Björn Steinbrink1-1/+8
2005-08-14Started to fade out the useOpenGL global variable.Björn Steinbrink1-2/+2
2005-08-14Moved image drawing code into the graphics class.Björn Steinbrink1-1/+16
2005-08-14Make the wrapper functions in the Graphics class conditional on OpenGL support.Björn Steinbrink1-3/+10
2005-08-13Huge header cleanup to reduce dependencies and compile time.Björn Steinbrink1-27/+8
2005-08-10Moved knowledge about whether we use OpenGL into the Graphics class. Added ↵Björn Steinbrink1-0/+5
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-8/+15
2005-07-27Committing merging opengl and sdl part 3 by AndrejBjørn Lindeijer1-2/+8
2005-07-26OpenGL/SDL combined in the same exe. Not in the cutest way, but we'll find aBjørn Lindeijer1-8/+13
nicer approach after the release.
2005-07-16Updated changelog, got rid of remaining extern SDL_Surface *screen cases,Bjørn Lindeijer1-1/+11
fixed double free and cleaned up a bit.
2005-07-16Made Image/SubImage being drawn by Graphics. Removed some redundant code.Björn Steinbrink1-2/+3
2005-07-14Committed resource manager cleanup patch by Doener, and properly implementedBjørn Lindeijer1-3/+0
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-0/+2
* 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-13- Adding the wonderful new font by Bjorn to speech and player namesEugenio Favalli1-2/+0
- Way to system cursor (now you can choose the original sdl cursor in config)
2005-05-16Leave out OpenGL completely when not enabled.Bjørn Lindeijer1-1/+3
2005-03-03Fixing Windows compile (second try)Bjørn Lindeijer1-4/+4
2005-03-03Separated graphic/graphic.cpp into graphics.cpp and engine.cpp.Bjørn Lindeijer1-0/+115