src/supertux/main.cpp File Reference

#include <config.h>
#include <version.h>
#include <SDL_image.h>
#include <physfs.h>
#include <iostream>
#include <binreloc.h>
#include <tinygettext/log.hpp>
#include <boost/format.hpp>
#include <findlocale.h>
#include "supertux/main.hpp"
#include "addon/addon_manager.hpp"
#include "audio/sound_manager.hpp"
#include "control/joystickkeyboardcontroller.hpp"
#include "math/random_generator.hpp"
#include "physfs/ifile_stream.hpp"
#include "physfs/physfs_sdl.hpp"
#include "physfs/physfs_file_system.hpp"
#include "scripting/squirrel_util.hpp"
#include "supertux/gameconfig.hpp"
#include "supertux/globals.hpp"
#include "supertux/player_status.hpp"
#include "supertux/screen_manager.hpp"
#include "supertux/resources.hpp"
#include "supertux/title_screen.hpp"
#include "util/file_system.hpp"
#include "util/gettext.hpp"
#include "video/drawing_context.hpp"
#include "worldmap/worldmap.hpp"

Go to the source code of this file.

Defines

#define WRITEDIR_NAME   "." PACKAGE_NAME

Functions

static void timelog (const char *component)

Variables

DrawingContextcontext_pointer
static Uint32 last_timelog_ticks = 0
static const char * last_timelog_component = 0


Define Documentation

#define WRITEDIR_NAME   "." PACKAGE_NAME

Definition at line 62 of file main.cpp.

Referenced by Main::init_physfs(), and Main::print_usage().


Function Documentation

static void timelog ( const char *  component  )  [inline, static]

Definition at line 560 of file main.cpp.

References last_timelog_component, last_timelog_ticks, and log_info.

Referenced by Main::run().

00561 {
00562   Uint32 current_ticks = SDL_GetTicks();
00563 
00564   if(last_timelog_component != 0) {
00565     log_info << "Component '" << last_timelog_component <<  "' finished after " << (current_ticks - last_timelog_ticks) / 1000.0 << " seconds" << std::endl;
00566   }
00567 
00568   last_timelog_ticks = current_ticks;
00569   last_timelog_component = component;
00570 }


Variable Documentation

DrawingContext* context_pointer [static]

Definition at line 57 of file main.cpp.

Referenced by Main::init_video(), and Main::run().

const char* last_timelog_component = 0 [static]

Definition at line 558 of file main.cpp.

Referenced by timelog().

Uint32 last_timelog_ticks = 0 [static]

Definition at line 557 of file main.cpp.

Referenced by timelog().


Generated on Mon Jun 9 03:38:26 2014 for SuperTux by  doxygen 1.5.1