FlightGear and OpenGL Core Profile: Difference between revisions

Jump to navigation Jump to search
m
m (→‎See also: https://forum.flightgear.org/viewtopic.php?f=45&t=36922&p=364937#p364937)
Line 37: Line 37:
</syntaxhighlight>
</syntaxhighlight>


And then by adding <code>#ifdef</code> macros to the sources in question, and updating CMakeLists.txt accordingly: https://sourceforge.net/p/flightgear/flightgear/ci/next/tree/src/Cockpit/panel_io.cxx#l751
== Example: disabling PUI ==
 
Knowing that [[PUI]] contains legacy OpenGL code and knowing it's scheduled to be removed anyway, we will disable it completely without reviewing/porting individual files.
 
We will be adding <code>#ifdef</code> macros to the sources in question, and update CMakeLists.txt accordingly.


Ideally, in conjunction with a feature-specific build option to disable the corresponding feature (think [[PUI]] or the [[HUD]]).
Ideally, in conjunction with a feature-specific build option to disable the corresponding feature (think [[PUI]] or the [[HUD]]).
Initially, this will probably include:
* $FG_SRC/GUI (see: [[PUI]])
* $FG_SRC/Cockpit


{{Main article|Developing using CMake}}
{{Main article|Developing using CMake}}

Navigation menu