Activate the hi res screen capture functionality again, however it is no
longer working 100% correctly. :-(
This commit is contained in:
parent
30bbccb98d
commit
cc66c8fdca
4 changed files with 20 additions and 4 deletions
|
@ -60,6 +60,7 @@ extern void reInit(puObject *);
|
|||
extern void dumpSnapShot(puObject *);
|
||||
#ifdef TR_HIRES_SNAP
|
||||
extern void dumpHiResSnapShot(puObject *);
|
||||
extern void fgHiResDump();
|
||||
#endif
|
||||
#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
|
||||
extern void printScreen(puObject *);
|
||||
|
|
|
@ -521,7 +521,7 @@ void fgHiResDump()
|
|||
static int count = 1;
|
||||
|
||||
static const SGPropertyNode *master_freeze
|
||||
= fgGetNode("/sim/freeze/master");
|
||||
= fgGetNode("/sim/freeze/master");
|
||||
|
||||
bool freeze = master_freeze->getBoolValue();
|
||||
if ( !freeze ) {
|
||||
|
@ -550,6 +550,9 @@ void fgHiResDump()
|
|||
ssgSetCamera( (sgVec4 *)globals->get_current_view()->get_VIEW() );
|
||||
ssgSetFOV( globals->get_current_view()->get_h_fov(),
|
||||
globals->get_current_view()->get_v_fov() );
|
||||
cout << "FOV = " << globals->get_current_view()->get_h_fov()
|
||||
<< ", " << globals->get_current_view()->get_v_fov() << endl;
|
||||
|
||||
// ssgSetNearFar( 10.0f, 120000.0f );
|
||||
ssgSetNearFar( 0.5f, 1200000.0f );
|
||||
|
||||
|
@ -559,7 +562,7 @@ void fgHiResDump()
|
|||
// support any image size
|
||||
|
||||
// This should be a requester to get multiplier from user
|
||||
int multiplier = 3;
|
||||
int multiplier = fgGetInt("/sim/startup/hires-multiplier", 3);
|
||||
int width = fgGetInt("/sim/startup/xsize");
|
||||
int height = fgGetInt("/sim/startup/ysize");
|
||||
|
||||
|
|
|
@ -456,6 +456,17 @@ do_screen_capture (const SGPropertyNode * arg)
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* Built-in command: hires capture screen.
|
||||
*/
|
||||
static bool
|
||||
do_hires_screen_capture (const SGPropertyNode * arg)
|
||||
{
|
||||
fgHiResDump();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reload the tile cache.
|
||||
*/
|
||||
|
@ -1244,6 +1255,7 @@ static struct {
|
|||
{ "preferences-load", do_preferences_load },
|
||||
{ "view-cycle", do_view_cycle },
|
||||
{ "screen-capture", do_screen_capture },
|
||||
{ "hires-screen-capture", do_hires_screen_capture },
|
||||
{ "tile-cache-reload", do_tile_cache_reload },
|
||||
{ "set-sea-level-air-temp-degc", do_set_sea_level_degc },
|
||||
{ "set-outside-air-temp-degc", do_set_oat_degc },
|
||||
|
|
|
@ -908,11 +908,11 @@ FGRenderer::resize( int width, int height ) {
|
|||
}
|
||||
|
||||
ssgSetFOV( viewmgr->get_current_view()->get_h_fov(),
|
||||
viewmgr->get_current_view()->get_v_fov() );
|
||||
viewmgr->get_current_view()->get_v_fov() );
|
||||
|
||||
#ifdef FG_USE_CLOUDS_3D
|
||||
sgClouds3d->Resize( viewmgr->get_current_view()->get_h_fov(),
|
||||
viewmgr->get_current_view()->get_v_fov() );
|
||||
viewmgr->get_current_view()->get_v_fov() );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue