20,741
edits
m (→Approach) |
|||
| Line 39: | Line 39: | ||
== Example: disabling PUI == | == 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. | 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 | ||
reviewing/porting individual PUI files. This means opening $FG_SRC/CMakeLists.txt to add a new option to disable PUI: | |||
<syntaxhighlight lang="cmake"> | |||
</syntaxhighlight> | |||
We will be adding <code>#ifdef</code> macros to the sources in question, and update CMakeLists.txt accordingly. | 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]]). | ||
So, after editing fg_init.cxx to prevent the PUI GUI from getting initialized by FlightGear, we will need to find remaining hard-coded references to it, to fix those up and deal with PUI not being available. | |||
{{Main article|Developing using CMake}} | {{Main article|Developing using CMake}} | ||