aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx
AgeCommit message (Collapse)Author
2010-11-16COMMON: Simplify DECLARE_SINGLETON macroMax Horn
This makes it possible to write DECLARE_SINGLETON(foo); instead of DECLARE_SINGLETON(foo) without causing a warning about an extra semicolon. The extra semicolon helps some editors at parsing the C++ code. svn-id: r54258
2010-11-03SWORD25: cleanupMax Horn
svn-id: r54045
2010-11-02SWORD25: Convert printf to debugNMax Horn
svn-id: r54040
2010-11-01SWORD25: Replace art_warn/art_die by warning/errorMax Horn
svn-id: r54002
2010-10-30ALL: Add code to help stop people from accidentally using "bad" APIsMax Horn
A new header file common/forbidden.h is included by scummsys.h and it re-#defines numerous symbols like fopen(), fread(), system(), etc. with garbage, in order to provoke compile errors in any code using them. If a .cpp file really *must* use any of these (e.g. because it is a backend file), then these redefinitions can be disabled by #defining FORBIDDEN_SYMBOL_ALLOW_ALL as the first thing in the .cpp file. Whenever this is done, an explanatory comment should be added. Note that this system cannot catch all "bad" usages (notably the Lua code in the sword25 engine), as it can only work if scummsys.h is included. svn-id: r53961
2010-10-28SWORD25: Start to rename read/write methods of *PersistenceBlock classesMax Horn
All should be renamed to reduce risk of accidental incorrect use. svn-id: r53899
2010-10-28SWORD25: Get rid of CallbackRegistryMax Horn
svn-id: r53898
2010-10-25SWORD25: Disable script triggered screenshotsMax Horn
svn-id: r53840
2010-10-25SWORD25: Get rid of most of the 'kernel service/superclass' codeMax Horn
svn-id: r53835
2010-10-24SWORD25: Get rid of kernel/string.hMax Horn
svn-id: r53758
2010-10-24SWORD25: Simplify & optimize PNG reading codeMax Horn
The interlaced part is untested since I do not know any place in the game where interlaced data is used. svn-id: r53757
2010-10-24SWORD25: Get rid of colorFormat parameter in PNGLoader APIMax Horn
Only CF_ARGB32 was supported anyway. svn-id: r53756
2010-10-24SWORD25: Merge classes PNGLoader, ImageLoader and ImageLoaderManagerMax Horn
This looses some flexibility when it comes to supporting other image formats. But since the game does not use other image formats, this seems rather irrelevant, compared to how much simpler the code now is. svn-id: r53755
2010-10-24SWORD25: Merge B25SLoader into PNGLoaderMax Horn
svn-id: r53754
2010-10-24SWORD25: Add ImageLoaderManager, get rid of last globally constructed objectMax Horn
This also gets rid of an evil use of atexit. svn-id: r53753
2010-10-24SWORD25: Remove outdated commentsMax Horn
svn-id: r53752
2010-10-23SWORD25: Register LUA callbacks insider registerScriptBindings() methodsMax Horn
Previously, the constructor of an anonymous global object was used to do this, for no apparent reason. However, maybe there was a hidden reason which I missed, so this change might cause regressions. I.e., please test. svn-id: r53735
2010-10-23SWORD25: Get rid of global SharedPtr instancesMax Horn
svn-id: r53734
2010-10-20SWORD25: Added description field to savegamesPaul Gilbert
This stores the date and time of when the game was saved, since ScummVM doesn't support getting a file's age like the original engine did. svn-id: r53638
2010-10-19SWORD25: Enforced code formatting rules in rest of the engineEugene Sandulenko
svn-id: r53626
2010-10-19SWORD25: Enforce code naming conventions in gfx/*Eugene Sandulenko
svn-id: r53625
2010-10-19SWORD25: Enforce code naming conventions in gfx/image/imageloader*Eugene Sandulenko
svn-id: r53623
2010-10-19SWORD25: Fix engine exit when running without theoradecEugene Sandulenko
svn-id: r53622
2010-10-19SWORD25: Enforce code naming conventions in gfx/graphicengine*Eugene Sandulenko
svn-id: r53621
2010-10-19SWORD25: Properly implement GraphicEngine::fill()Eugene Sandulenko
Now all transitions and dimming out screen at exit dialog is supported. svn-id: r53620
2010-10-19SWORD25: Fix for Valgrind identified memory leakPaul Gilbert
svn-id: r53611
2010-10-18SWORD25: Renamed Lua .c files to .cpp and make it compilableEugene Sandulenko
svn-id: r53568
2010-10-18SWORD25: Fix Valgrind reported uninitialised errorsPaul Gilbert
svn-id: r53565
2010-10-18SWORD25: Fix for Valgrind identified errorsPaul Gilbert
svn-id: r53563
2010-10-15COMMON: Add XMLParser::parseIntegerKey variant accepting a Common::StringMax Horn
Almost all places where we used XMLParser::parseIntegerKey were using it like this: XMLParser::parseIntegerKey(str.c_str(), ...) Since this makes the code harder to read, I overloaded the method to also accept Commmon::String directly. Also removed all .c_str() invocations where necessary. svn-id: r53479
2010-10-15SWORD25: Typo, cleanupMax Horn
svn-id: r53478
2010-10-15SWORD25: Do not use Kernel::GetService directly anymoreMax Horn
svn-id: r53477
2010-10-15SWORD25: Adapted a few things to our code formatting conventions; translated ↵Max Horn
rest of graphicengine.h to german svn-id: r53476
2010-10-15SWORD25: Fix a few global constructor warningsMax Horn
svn-id: r53475
2010-10-13SWORD25: Get rid of (deprecated) access to libpng io_ptrMax Horn
Unfortunately I cannot test this, so watch our for regressions. svn-id: r53451
2010-10-13SWORD25: Fix empty loop body & conversion warningsMax Horn
svn-id: r53450
2010-10-13SWORD25: Worked around crash in options dialog.Torbjörn Andersson
I don't really know if this is correct, but aesthetically it goes well with how the scale factor is treated. svn-id: r53447
2010-10-13SWORD25: Semi-colon cleanup.Johannes Schickel
svn-id: r53446
2010-10-13SWORD25: Convert object registries to singletonsMax Horn
svn-id: r53431
2010-10-13SWORD25: Renamed getInstance() -> instance()Max Horn
svn-id: r53430
2010-10-13SWORD25: Silenced MSVC false positive about a potentially uninitialized variableFilippos Karapetis
svn-id: r53412
2010-10-13SWORD25: Stop using class names as variable namesFilippos Karapetis
svn-id: r53408
2010-10-13SWORD25: Get rid of kernel/bs_stdint.hMax Horn
svn-id: r53405
2010-10-13SWORD25: Get rid of Kernel::GetMicroTicks()Max Horn
svn-id: r53403
2010-10-13SWORD25: Enforce code naming conventions in gfx/animation*Eugene Sandulenko
svn-id: r53393
2010-10-13SWORD25: Enforced code naming conventions in math/*Eugene Sandulenko
svn-id: r53392
2010-10-13SWORD25: Enforced code naming conventions in script/*Eugene Sandulenko
svn-id: r53391
2010-10-13SWORD25: Enforced code naming conventions in sfx/ and reservice.hEugene Sandulenko
svn-id: r53390
2010-10-13SWORD25: Add path to art.h includeEugene Sandulenko
svn-id: r53386
2010-10-13SWORD25: Stop polluting global namespaceEugene Sandulenko
svn-id: r53385