Pyrogenesis  trunk
Classes | Macros | Functions | Variables
GameView.cpp File Reference
#include "precompiled.h"
#include "GameView.h"
#include "graphics/Camera.h"
#include "graphics/CinemaManager.h"
#include "graphics/ColladaManager.h"
#include "graphics/HFTracer.h"
#include "graphics/LOSTexture.h"
#include "graphics/LightEnv.h"
#include "graphics/Model.h"
#include "graphics/ObjectManager.h"
#include "graphics/Patch.h"
#include "graphics/SkeletonAnimManager.h"
#include "graphics/Terrain.h"
#include "graphics/TerrainTextureManager.h"
#include "graphics/TerritoryTexture.h"
#include "graphics/Unit.h"
#include "graphics/UnitManager.h"
#include "graphics/scripting/JSInterface_GameView.h"
#include "lib/input.h"
#include "lib/timer.h"
#include "lobby/IXmppClient.h"
#include "maths/BoundingBoxAligned.h"
#include "maths/MathUtil.h"
#include "maths/Matrix3D.h"
#include "maths/Quaternion.h"
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/Game.h"
#include "ps/Globals.h"
#include "ps/Hotkey.h"
#include "ps/Joystick.h"
#include "ps/Loader.h"
#include "ps/LoaderThunks.h"
#include "ps/Profile.h"
#include "ps/Pyrogenesis.h"
#include "ps/TouchInput.h"
#include "ps/World.h"
#include "renderer/Renderer.h"
#include "renderer/WaterManager.h"
#include "simulation2/Simulation2.h"
#include "simulation2/components/ICmpPosition.h"
#include "simulation2/components/ICmpRangeManager.h"
Include dependency graph for GameView.cpp:

Classes

class  CSmoothedValue
 A value with exponential decay towards the target value. More...
 
class  CGameViewImpl
 

Macros

#define IMPLEMENT_BOOLEAN_SETTING(NAME)
 

Functions

 IMPLEMENT_BOOLEAN_SETTING (Culling)
 
 IMPLEMENT_BOOLEAN_SETTING (LockCullCamera)
 
 IMPLEMENT_BOOLEAN_SETTING (ConstrainCamera)
 
static void SetupCameraMatrixSmooth (CGameViewImpl *m, CMatrix3D *orientation)
 
static void SetupCameraMatrixSmoothRot (CGameViewImpl *m, CMatrix3D *orientation)
 
static void SetupCameraMatrixNonSmooth (CGameViewImpl *m, CMatrix3D *orientation)
 
static void FocusHeight (CGameViewImpl *m, bool smooth)
 
InReaction game_view_handler (const SDL_Event_ *ev)
 

Variables

int g_xres
 
int g_yres
 
static const float CAMERA_EDGE_MARGIN = 2.0f*TERRAIN_TILE_SIZE
 

Macro Definition Documentation

#define IMPLEMENT_BOOLEAN_SETTING (   NAME)
Value:
bool CGameView::Get##NAME##Enabled() \
{ \
return m->NAME; \
} \
\
void CGameView::Set##NAME##Enabled(bool Enabled) \
{ \
m->NAME = Enabled; \
}
void Get(const CStr &value, T &ret)
Definition: ConfigDB.cpp:61

Function Documentation

static void FocusHeight ( CGameViewImpl m,
bool  smooth 
)
static
InReaction game_view_handler ( const SDL_Event_ ev)
IMPLEMENT_BOOLEAN_SETTING ( Culling  )
IMPLEMENT_BOOLEAN_SETTING ( LockCullCamera  )
IMPLEMENT_BOOLEAN_SETTING ( ConstrainCamera  )
static void SetupCameraMatrixNonSmooth ( CGameViewImpl m,
CMatrix3D orientation 
)
static
static void SetupCameraMatrixSmooth ( CGameViewImpl m,
CMatrix3D orientation 
)
static
static void SetupCameraMatrixSmoothRot ( CGameViewImpl m,
CMatrix3D orientation 
)
static

Variable Documentation

const float CAMERA_EDGE_MARGIN = 2.0f*TERRAIN_TILE_SIZE
static
int g_xres
int g_yres