void CamWnd_registerShortcuts(){
toggle_add_accelerator( "ToggleCubicClip" );
-#if !defined( DISABLE_DOOM3_LIGHTING )
if ( g_pGameDescription->mGameType == "doom3" ) {
command_connect_accelerator( "TogglePreview" );
}
-#endif // !DISABLE_DOOM3_LIGHTING
command_connect_accelerator( "FOVInc" );
command_connect_accelerator( "FOVDec" );
}
}
-#if !defined( DISABLE_DOOM3_LIGHTING )
void CamWnd_TogglePreview( void ){
// gametype must be doom3 for this function to work
// if the gametype is not doom3 something is wrong with the
// switch between textured and lighting mode
CamWnd_SetMode( ( CamWnd_GetMode() == cd_lighting ) ? cd_texture : cd_lighting );
}
-#endif // !DISABLE_DOOM3_LIGHTING
CameraModel* g_camera_model = 0;
make_property<Camera_FarClip>()
);
-#if !defined( DISABLE_DOOM3_LIGHTING )
if ( g_pGameDescription->mGameType == "doom3" ) {
const char* render_mode[] = { "Wireframe", "Flatshade", "Textured", "Lighting" };
);
}
else
-#endif // !DISABLE_DOOM3_LIGHTING
{
const char* render_mode[] = { "Wireframe", "Flatshade", "Textured" };
GlobalCommands_insert( "LookThroughSelected", makeCallbackF(GlobalCamera_LookThroughSelected) );
GlobalCommands_insert( "LookThroughCamera", makeCallbackF(GlobalCamera_LookThroughCamera) );
-#if !defined( DISABLE_DOOM3_LIGHTING )
if ( g_pGameDescription->mGameType == "doom3" ) {
GlobalCommands_insert( "TogglePreview", makeCallbackF(CamWnd_TogglePreview), Accelerator( GDK_KEY_F3 ) );
}
-#endif // !DISABLE_DOOM3_LIGHTING
GlobalCommands_insert( "FOVInc", makeCallbackF(FOV_increase), Accelerator( GDK_KEY_KP_Multiply, (GdkModifierType)GDK_SHIFT_MASK ) );
GlobalCommands_insert( "FOVDec", makeCallbackF(FOV_decrease), Accelerator( GDK_KEY_KP_Divide, (GdkModifierType)GDK_SHIFT_MASK ) );