#include <math.h>
#include <GL/glut.h>
#include <plib/ssg.h>
#include <plib/ssgAux.h>
#include "../Ssg/ssgLocal.h"
#include "../Include/FlyLegacy.h"
#include "../Include/Globals.h"
#include "../Include/Situation.h"
#include "../Include/KeyMap.h"
#include "../Include/Ui.h"
#include "../Include/Database.h"
#include "../Include/Utility.h"
#include "../Include/LogFile.h"
#include "../Include/Pod.h"
Go to the source code of this file.
Functions | |
| static void | idle (void) |
| static void | reshape (int w, int h) |
| static void | motion (int x, int y) |
| static void | passive_motion (int x, int y) |
| static void | mouse (int button, int updown, int x, int y) |
| static void | keyboard (unsigned char key, int x, int y) |
| static void | special (int key, int x, int y) |
| static void | redraw (void) |
| static void | InitGraphics () |
| void | InitFonts (void) |
| void | cleanup_fonts (void) |
| void | LoadDatabases (void) |
| void | UnloadDatabases (void) |
| static void | InitGlobalsNoPodFilesystem (void) |
| static void | InitGlobalsWithPodFilesystem (void) |
| void | CleanupGlobals (void) |
| void | ShutdownAll (void) |
| static void | InitSplashScreen (void) |
| static void | Draw2D (SSurface *surf) |
| static void | RedrawSplashScreen (void) |
| static void | CleanupSplashScreen (void) |
| static void | Initialize (void) |
| static void | InitLoadingScreen (void) |
| static void | RedrawLoadingScreen (void) |
| static void | CleanupLoadingScreen (void) |
| static void | LoadStartupSituation (void) |
| static void | RedrawSimulation (void) |
| static void | InitExitScreen (void) |
| static void | RedrawExitScreen (void) |
| static void | CleanupExitScreen (void) |
| static void | ExitApp () |
| int | main (int argc, char **argv) |
Variables | |
| SGlobals * | globals = NULL |
| CDatabase * | dbAirport |
| CDatabase * | dbAtsRoute |
| CDatabase * | dbComm |
| CDatabase * | dbCountry |
| CDatabase * | dbState |
| CDatabase * | dbIls |
| CDatabase * | dbNavaid |
| CDatabase * | dbObstruct |
| CDatabase * | dbRunway |
| CDatabase * | dbWaypoint |
| SBitmap * | bmSplash = NULL |
| SSurface * | surfSplash = NULL |
| SBitmap * | bmLoading |
| SSurface * | surfLoading |
| static unsigned int | nFrames = 0 |
| static float | tFrames = 0.0f |
| static float | frameRate = 0.0f |
| SBitmap * | bmExit = NULL |
| SSurface * | surfExit = NULL |
Definition in file Main.cpp.
|
|
Definition at line 246 of file Main.cpp. References SGlobals::fonts, FreeFont(), SDefaultFonts::ftasci10, SDefaultFonts::ftascm10, SDefaultFonts::ftdigi13, SDefaultFonts::ftdigi9, SDefaultFonts::ftdigi9b, SDefaultFonts::ftdigi9d, SDefaultFonts::ftmicro5, SDefaultFonts::ftmno14b, SDefaultFonts::ftmono12, SDefaultFonts::ftsmal10, SDefaultFonts::ftthin24, and SDefaultFonts::fttiny7. Referenced by CleanupGlobals(). |
|
|
Definition at line 1158 of file Main.cpp. References FreeBitmap(), and FreeSurface(). Referenced by ExitApp(). |
|
|
Definition at line 562 of file Main.cpp. References SGlobals::audiomgr, cleanup_fonts(), cleanup_ui(), SGlobals::context, SGlobals::cursormgr, SGlobals::fuimgr, SGlobals::keymap, SGlobals::logDebug, SGlobals::logWarning, SGlobals::pfs, pshutdown(), SGlobals::settings, SGlobals::sit, SGlobals::skymgr, SGlobals::slewmgr, SGlobals::terrainmgr, and SGlobals::timemgr. Referenced by ShutdownAll(). |
|
|
Definition at line 1021 of file Main.cpp. References FreeBitmap(), and FreeSurface(). Referenced by redraw(). |
|
|
Definition at line 952 of file Main.cpp. References FreeBitmap(), and FreeSurface(). Referenced by redraw(). |
|
|
Definition at line 912 of file Main.cpp. References Blit(), gtfo, SGlobals::screenHeight, and SGlobals::screenWidth. Referenced by RedrawExitScreen(), RedrawLoadingScreen(), and RedrawSplashScreen(). |
|
|
Definition at line 1165 of file Main.cpp. References CleanupExitScreen(), and ShutdownAll(). Referenced by redraw(). |
|
|
Definition at line 619 of file Main.cpp. References first, KB_MODIFIER_ALT, KB_MODIFIER_CTRL, KB_MODIFIER_NONE, KB_MODIFIER_SHIFT, SGlobals::keymap, and CKeyMap::KeyPress(). Referenced by InitGraphics(). |
|
|
Definition at line 1123 of file Main.cpp. References SBitmap::bitmapName, CreateSurface(), DrawBitmap(), DrawTextC(), EraseSurface(), SGlobals::fonts, SDefaultFonts::ftthin24, GetBitmapSize(), LoadBitmap(), MakeRGB(), SGlobals::screenHeight, SGlobals::screenWidth, SSurface::xScreen, and SSurface::yScreen. Referenced by redraw(). |
|
|
Definition at line 194 of file Main.cpp. References SFont::fontName, SGlobals::fonts, SDefaultFonts::ftasci10, SDefaultFonts::ftascm10, SDefaultFonts::ftdigi13, SDefaultFonts::ftdigi9, SDefaultFonts::ftdigi9b, SDefaultFonts::ftdigi9d, SDefaultFonts::ftmicro5, SDefaultFonts::ftmno14b, SDefaultFonts::ftmono12, SDefaultFonts::ftsmal10, SDefaultFonts::ftthin24, SDefaultFonts::fttiny7, and LoadFont(). Referenced by main(). |
|
|
|
Definition at line 541 of file Main.cpp. References SGlobals::fuimgr, LoadDatabases(), CFuiManager::Print(), SGlobals::skymgr, and SGlobals::terrainmgr. Referenced by Initialize(). |
|
|
Definition at line 106 of file Main.cpp. References SGlobals::context, GetIniFloat(), GetIniVar(), idle(), keyboard(), motion(), mouse(), passive_motion(), redraw(), reshape(), SGlobals::screenDepth, SGlobals::screenHeight, SGlobals::screenRefresh, SGlobals::screenWidth, special(), and WARNINGLOG. Referenced by main(). |
|
|
Definition at line 962 of file Main.cpp. References CCursorManager::BindCursor(), SGlobals::crsrArrow, SGlobals::cursormgr, init_globe_tile_table(), init_keyboard(), InitGlobalsWithPodFilesystem(), and CCursorManager::SetCursor(). Referenced by redraw(). |
|
|
Definition at line 982 of file Main.cpp. References SBitmap::bitmapName, CreateSurface(), DrawBitmap(), DrawBitmapPartial(), EraseSurface(), GetBitmapSize(), LoadBitmap(), SGlobals::screenHeight, SGlobals::screenWidth, SSurface::xScreen, and SSurface::yScreen. Referenced by redraw(). |
|
|
Definition at line 877 of file Main.cpp. References SBitmap::bitmapName, CreateSurface(), DrawBitmap(), DrawTextC(), EraseSurface(), FLY_LEGACY_BUILD, FLY_LEGACY_MAJOR_VERSION, FLY_LEGACY_MINOR_VERSION, FLY_LEGACY_TITLE, SGlobals::fonts, SDefaultFonts::ftthin24, GetBitmapSize(), LoadBitmap(), MakeRGB(), SGlobals::screenHeight, SGlobals::screenWidth, SSurface::xScreen, and SSurface::yScreen. Referenced by redraw(). |
|
||||||||||||||||
|
Definition at line 821 of file Main.cpp. References glutKeyToFlyLegacyKey(), glutModifiersToFlyLegacyModifiers(), SGlobals::keymap, CKeyMap::KeyPress(), SGlobals::logWarning, and CLogFile::Write(). Referenced by InitGraphics(). |
|
|
Definition at line 283 of file Main.cpp. References CDatabase::AddIndex(), and CDatabase::Mount(). Referenced by InitGlobalsWithPodFilesystem(). |
|
|
Definition at line 1038 of file Main.cpp. References GetIniString(), SaveIniSettings(), SetIniString(), and SGlobals::sit. Referenced by redraw(). |
|
||||||||||||
|
Definition at line 1287 of file Main.cpp. References APP_SPLASH_SCREEN, SGlobals::appState, GetIniString(), gtfo, init_ui(), InitFonts(), InitGlobalsNoPodFilesystem(), InitGraphics(), LoadIniSettings(), padddiskfolder(), paddpodfolder(), SGlobals::pfs, pinit(), SaveIniSettings(), and SetIniString(). |
|
||||||||||||
|
Definition at line 689 of file Main.cpp. References SGlobals::cursormgr, SGlobals::fuimgr, CSituation::GetCurrentPanel(), CCursorManager::MouseMotion(), CPanel::MouseMotion(), CFuiManager::MouseMove(), and SGlobals::sit. Referenced by InitGraphics(). |
|
||||||||||||||||||||
|
Definition at line 757 of file Main.cpp. References SGlobals::fuimgr, CSituation::GetCurrentPanel(), MOUSE_BUTTON_LEFT, MOUSE_BUTTON_MIDDLE, MOUSE_BUTTON_RIGHT, CPanel::MouseClick(), CFuiManager::MouseClick(), CFuiManager::MouseStopClick(), and SGlobals::sit. Referenced by InitGraphics(). |
|
||||||||||||
|
Definition at line 723 of file Main.cpp. References SGlobals::cursormgr, SGlobals::fuimgr, CSituation::GetCurrentPanel(), CCursorManager::MouseMotion(), CPanel::MouseMotion(), CFuiManager::MouseMove(), and SGlobals::sit. Referenced by InitGraphics(). |
|
|
Definition at line 1203 of file Main.cpp. References APP_EXIT, APP_EXIT_SCREEN, APP_GENERATE_SITUATION, APP_INIT, APP_LOAD_SITUATION, APP_LOADING_SCREEN, APP_PREPARE, APP_SIMULATION, APP_SPLASH_SCREEN, SGlobals::appState, CleanupLoadingScreen(), CleanupSplashScreen(), ExitApp(), InitExitScreen(), Initialize(), InitLoadingScreen(), InitSplashScreen(), LoadStartupSituation(), CSituation::Prepare(), RedrawExitScreen(), RedrawLoadingScreen(), RedrawSimulation(), RedrawSplashScreen(), and SGlobals::sit. Referenced by InitGraphics(). |
|
|
Definition at line 1152 of file Main.cpp. References Draw2D(). Referenced by redraw(). |
|
|
Definition at line 1013 of file Main.cpp. References Draw2D(). Referenced by redraw(). |
|
|
Definition at line 1077 of file Main.cpp. References SGlobals::cursormgr, CCursorManager::Draw(), CFuiManager::Draw(), CSituation::Draw(), DrawUi(), frameRate, SGlobals::fuimgr, CTimeManager::GetDeltaRealTime(), CTimeManager::GetDeltaSimTime(), nFrames, SGlobals::sit, tFrames, SGlobals::timemgr, CSituation::Timeslice(), and CTimeManager::Update(). Referenced by redraw(). |
|
|
Definition at line 946 of file Main.cpp. References Draw2D(). Referenced by redraw(). |
|
||||||||||||
|
Definition at line 680 of file Main.cpp. Referenced by InitGraphics(). |
|
|
Definition at line 599 of file Main.cpp. References CleanupGlobals(), SGlobals::logWarning, UnloadDatabases(), UnloadIniSettings(), and CLogFile::Write(). Referenced by ExitApp(). |
|
||||||||||||||||
|
Definition at line 846 of file Main.cpp. References glutModifiersToFlyLegacyModifiers(), glutSpecialToFlyLegacyKey(), SGlobals::keymap, CKeyMap::KeyPress(), SGlobals::logWarning, and CLogFile::Write(). Referenced by CSkyDomeImage::CSkyDomeImage(), and InitGraphics(). |
|
|
Definition at line 352 of file Main.cpp. Referenced by ShutdownAll(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 268 of file Main.cpp. Referenced by debug_dump_apdb_cb(), SearchAirportsByFAA(), and SearchAirportsByICAO(). |
|
|
|
|
|
|
|
|
Definition at line 271 of file Main.cpp. Referenced by TeleportDirectoryNotify(). |
|
|
|
|
|
Definition at line 274 of file Main.cpp. Referenced by SearchNavaidsByGlobeTile(). |
|
|
|
|
|
|
|
|
Definition at line 272 of file Main.cpp. Referenced by TeleportDirectoryNotify(). |
|
|
|
|
|
Definition at line 1075 of file Main.cpp. Referenced by RedrawSimulation(). |
|
|
|
Definition at line 1073 of file Main.cpp. Referenced by CModelACM::CModelACM(), CModelSMF::CModelSMF(), and RedrawSimulation(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 1074 of file Main.cpp. Referenced by RedrawSimulation(). |
|
|
Documentation generated by
|