orbitersim / orbiter

Open-source repository of Orbiter Space Flight Simulator
MIT License
1.62k stars 220 forks source link

[Lua]Add support for custom cameras and related sketchpad APIs #467

Closed TheGondos closed 5 months ago

TheGondos commented 5 months ago

This PR adds support for D3D9 custom cameras. The gcCore API is hidden behind oapi calls to make usage straightforward :

The manual is updated and an example MFD has been added to the Lua Atlantis vessel (basically a simplified port of the GenericCamera from D3D9Client) Along with this, some new API has been added to support the GenericCamera port :

TheGondos commented 5 months ago

gcGetCoreInterface was segfaulting during CTests in an fopen call when logging an initialization error, strange... Ended up lazy loading the gcCore when needed.

TheGondos commented 5 months ago

I'm done with this one, you can merge it if you feel it's ok