view codeDoc/debugCodes.txt @ 137:9f035cd139c6

BIG commit. Major change: old Options class is gone, all content values are loaded and saved automatically. All options updated to reflect this, some changed. Content restrutured a lot: New IContent module, Content module includes more functionality. New ContentLoader module to manage content loading/saving/translation. Translation module moved to content dir and cut down to reflect current usage. File format unchanged except renames: FontOptions -> Font, VideoOptions -> Screen. Font render mode and LCD filter options are now enums. GUI loading needs to create content (and set type for enums), but doesn't save/load value. Some setup of mainSchedule moved to mde.mainLoop. Content callbacks are called on content change now. ContentLists are set up implicitly from content symbols. Not as fast but much easier! Bug-fix in the new MTTagReader. Renamed MT *Reader maker functions to avoid confusion in paths.d. New mde.setup.logger module to allow logger setup before any other module's static this().
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 07 Feb 2009 12:46:03 +0000
parents 5ee69b3ed9c9
children a86f8445ccc8
line wrap: on
line source

Copyright © 2007-2008 Diggory Hardy
License: GNU General Public License version 2 or later (see COPYING)


General use of debug statement:
Non-critical assertions (i.e. for bug-tracking, usually for conditions which _should_ be guaranteed by the code).
Logging of all trace messages.


Debug codes currently used in mde:

- code -                - purpose -
mdeUnitTest             Compile in unittest code (including extra imports, and a few other bits outside the unittest itself).
drawGlyphCache          Draw the font texture in the upper-left corner of the screen, with a pretty background.
mdeWidgets              Log trace messages for the creation of all widgets.
SDLCalls		Log a message before some SDL calls.

Version identifies:

- code -		- purpose -
mdeBenchmark		Runs main loop as fast as possible forcing continual drawing, and prints framerate every 5 seconds.