Colobot
Classes | Namespaces | Enumerations
app.h File Reference

CApplication class. More...

#include "common/event.h"
#include "common/language.h"
#include "common/singleton.h"
#include "graphics/core/device.h"
#include "level/level_category.h"
#include <string>
#include <vector>
Include dependency graph for app.h:

Go to the source code of this file.

Classes

struct  JoystickDevice
 Information about a joystick device. More...
 
class  CApplication
 Main application. More...
 

Namespaces

 Gfx
 Namespace for (new) graphics code.
 

Enumerations

enum  ParseArgsStatus { PARSE_ARGS_OK = 1, PARSE_ARGS_FAIL = 2, PARSE_ARGS_HELP = 3 }
 State of parsing commandline arguments. More...
 
enum  MouseMode { MOUSE_SYSTEM, MOUSE_ENGINE, MOUSE_BOTH, MOUSE_NONE }
 Mode of mouse cursor. More...
 
enum  PerformanceCounter {
  PCNT_EVENT_PROCESSING, PCNT_UPDATE_ALL, PCNT_UPDATE_ENGINE, PCNT_UPDATE_PARTICLE,
  PCNT_UPDATE_GAME, PCNT_RENDER_ALL, PCNT_RENDER_PARTICLE, PCNT_RENDER_WATER,
  PCNT_RENDER_TERRAIN, PCNT_RENDER_OBJECTS, PCNT_RENDER_INTERFACE, PCNT_RENDER_SHADOW_MAP,
  PCNT_SWAP_BUFFERS, PCNT_ALL, PCNT_MAX
}
 Type of counter testing performance. More...
 
enum  DebugMode {
  DEBUG_SYS_EVENTS = 1 << 0, DEBUG_UPDATE_EVENTS = 1 << 1, DEBUG_APP_EVENTS = 1 << 2, DEBUG_EVENTS = DEBUG_SYS_EVENTS | DEBUG_UPDATE_EVENTS | DEBUG_APP_EVENTS,
  DEBUG_MODELS = 1 << 3, DEBUG_ALL = DEBUG_SYS_EVENTS | DEBUG_APP_EVENTS | DEBUG_MODELS
}
 

Detailed Description

CApplication class.

Enumeration Type Documentation

State of parsing commandline arguments.

Enumerator
PARSE_ARGS_FAIL 

< all ok

PARSE_ARGS_HELP 

< invalid syntax

enum MouseMode

Mode of mouse cursor.

Enumerator
MOUSE_ENGINE 

< system cursor visible; in-game cursor hidden

MOUSE_BOTH 

< in-game cursor visible; system cursor hidden

MOUSE_NONE 

< both cursors visible (only for debug)

Type of counter testing performance.

Enumerator
PCNT_UPDATE_ALL 

< event processing (except update events)

PCNT_UPDATE_ENGINE 

< the whole frame update process

PCNT_UPDATE_PARTICLE 

< frame update in CEngine

PCNT_UPDATE_GAME 

< frame update in CParticle

PCNT_RENDER_ALL 

< frame update in CRobotMain

PCNT_RENDER_PARTICLE 

< the whole rendering process

PCNT_RENDER_WATER 

< rendering the particles in 3D

PCNT_RENDER_TERRAIN 

< rendering the water

PCNT_RENDER_OBJECTS 

< rendering the terrain

PCNT_RENDER_INTERFACE 

< rendering the 3D objects

PCNT_RENDER_SHADOW_MAP 

< rendering 2D interface

PCNT_SWAP_BUFFERS 

< rendering shadow map

PCNT_ALL 

< swapping buffers and vsync

PCNT_MAX 

< all counters together