FlightGear next
fg_os_osgviewer.cxx File Reference
#include <config.h>
#include <algorithm>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <string>
#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx>
#include <simgear/props/props_io.hxx>
#include <simgear/structure/exception.hxx>
#include <simgear/scene/util/OsgIoCapture.hxx>
#include <osg/Camera>
#include <osg/GraphicsContext>
#include <osg/Group>
#include <osg/Matrixd>
#include <osg/Notify>
#include <osg/Version>
#include <osg/View>
#include <osg/Viewport>
#include <osgViewer/GraphicsWindow>
#include <osgViewer/Viewer>
#include <osgViewer/ViewerEventHandlers>
#include "CameraGroup.hxx"
#include "FGEventHandler.hxx"
#include "VRManager.hxx"
#include "WindowBuilder.hxx"
#include "WindowSystemAdapter.hxx"
#include "renderer.hxx"
#include <Main/fg_os.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
#include <Main/sentryIntegration.hxx>
#include <Main/util.hxx>
#include <Scenery/scenery.hxx>

Go to the source code of this file.

Classes

class  NotifyLevelListener
 
struct  AffinityControl
 

Functions

void updateOSGNotifyLevel ()
 
void fgOSOpenWindow ()
 
int getNumDatabaseThreads ()
 
void setNumDatabaseThreads (int threads)
 
void fgOSResetProperties ()
 
void fgOSExit (int code)
 
static void ShowAffinities ()
 
int fgOSMainLoop ()
 
int fgGetKeyModifiers ()
 
void fgWarpMouse (int x, int y)
 
void fgOSInit (int *argc, char **argv)
 
void fgOSCloseWindow ()
 
void fgOSFullScreen ()
 
void fgSetMouseCursor (FGMouseCursor::Cursor cursor)
 
FGMouseCursor::Cursor fgGetMouseCursor ()
 

Variables

SGPropertyNode * simHost = 0
 
SGPropertyNode * simFrameCount
 
SGPropertyNode * simTotalHostTime
 
SGPropertyNode * simFrameResetCount
 
SGPropertyNode * frameWait
 
static int status = 0
 
SGTimeStamp _lastUpdate
 

Function Documentation

◆ fgGetKeyModifiers()

int fgGetKeyModifiers ( )

Definition at line 363 of file fg_os_osgviewer.cxx.

◆ fgGetMouseCursor()

FGMouseCursor::Cursor fgGetMouseCursor ( )

Definition at line 503 of file fg_os_osgviewer.cxx.

◆ fgOSCloseWindow()

void fgOSCloseWindow ( )

Definition at line 392 of file fg_os_osgviewer.cxx.

◆ fgOSExit()

void fgOSExit ( int code)

Definition at line 197 of file fg_os_osgviewer.cxx.

◆ fgOSFullScreen()

void fgOSFullScreen ( )

Definition at line 418 of file fg_os_osgviewer.cxx.

◆ fgOSInit()

void fgOSInit ( int * argc,
char ** argv )

Definition at line 378 of file fg_os_osgviewer.cxx.

◆ fgOSMainLoop()

int fgOSMainLoop ( )

Definition at line 305 of file fg_os_osgviewer.cxx.

◆ fgOSOpenWindow()

void fgOSOpenWindow ( )

Definition at line 104 of file fg_os_osgviewer.cxx.

◆ fgOSResetProperties()

void fgOSResetProperties ( )

Definition at line 165 of file fg_os_osgviewer.cxx.

◆ fgSetMouseCursor()

void fgSetMouseCursor ( FGMouseCursor::Cursor cursor)

Definition at line 498 of file fg_os_osgviewer.cxx.

◆ fgWarpMouse()

void fgWarpMouse ( int x,
int y )

Definition at line 373 of file fg_os_osgviewer.cxx.

◆ getNumDatabaseThreads()

int getNumDatabaseThreads ( )
inline

Definition at line 162 of file fg_os_osgviewer.cxx.

◆ setNumDatabaseThreads()

void setNumDatabaseThreads ( int threads)
inline

Definition at line 163 of file fg_os_osgviewer.cxx.

◆ ShowAffinities()

static void ShowAffinities ( )
static

Definition at line 211 of file fg_os_osgviewer.cxx.

◆ updateOSGNotifyLevel()

void updateOSGNotifyLevel ( )

Definition at line 100 of file fg_os_osgviewer.cxx.

Variable Documentation

◆ _lastUpdate

SGTimeStamp _lastUpdate

Definition at line 209 of file fg_os_osgviewer.cxx.

◆ frameWait

SGPropertyNode * frameWait

Definition at line 158 of file fg_os_osgviewer.cxx.

◆ simFrameCount

SGPropertyNode * simFrameCount

Definition at line 158 of file fg_os_osgviewer.cxx.

◆ simFrameResetCount

SGPropertyNode * simFrameResetCount

Definition at line 158 of file fg_os_osgviewer.cxx.

◆ simHost

SGPropertyNode* simHost = 0

Definition at line 158 of file fg_os_osgviewer.cxx.

◆ simTotalHostTime

SGPropertyNode * simTotalHostTime

Definition at line 158 of file fg_os_osgviewer.cxx.

◆ status

int status = 0
static

Definition at line 195 of file fg_os_osgviewer.cxx.