FlightGear and OpenGL Core Profile: Difference between revisions

Jump to navigation Jump to search
m
No edit summary
Line 51: Line 51:
{{Main article|Developing using CMake}}
{{Main article|Developing using CMake}}


We should add separate build options to explicitly disable certain features individually, e.g.:
We should add separate build options to explicitly disable certain features individually.
* <code>-DDISABLE_PUI</code>
* <code>-DDISABLE_2DPANELS</code>


Knowing that [[PUI]] contains legacy OpenGL code and knowing it's scheduled to be removed anyway because it isn't compatible with modern OpenGL, we will disable it completely without  
Knowing that [[PUI]] contains legacy OpenGL code and knowing it's scheduled to be removed anyway because it isn't compatible with modern OpenGL, we will disable it completely without  
Line 69: Line 67:
option(SYSTEM_CPPUNIT    "Set to ON to build Flightgear with the system's CppUnit library")
option(SYSTEM_CPPUNIT    "Set to ON to build Flightgear with the system's CppUnit library")
option(DISABLE_PUI    "Set to ON to build Flightgear without PUI support")
option(DISABLE_PUI    "Set to ON to build Flightgear without PUI support")
if(DISABLE_PUI)
      add_definitions(-DDISABLE_PUI)
endif(DISABLE_PUI)
</syntaxhighlight>
</syntaxhighlight>


Line 83: Line 86:
     // Create and register the XML GUI.
     // Create and register the XML GUI.
     ////////////////////////////////////////////////////////////////////
     ////////////////////////////////////////////////////////////////////
#if 0
#ifndef DISABLE_PUI
     globals->add_subsystem("gui", new NewGUI, SGSubsystemMgr::INIT);
     globals->add_subsystem("gui", new NewGUI, SGSubsystemMgr::INIT);
#endif
#endif
Line 124: Line 127:
     { "hires-screen-capture", do_hires_screen_capture },
     { "hires-screen-capture", do_hires_screen_capture },
     { "tile-cache-reload", do_tile_cache_reload },
     { "tile-cache-reload", do_tile_cache_reload },
#if 0
#ifndef DISABLE_PUI
     { "dialog-new", do_dialog_new },
     { "dialog-new", do_dialog_new },
     { "dialog-show", do_dialog_show },
     { "dialog-show", do_dialog_show },

Navigation menu