Howto:Use a Camera View in an Instrument: Difference between revisions

Jump to navigation Jump to search
Line 85: Line 85:


==FlightGear code==
==FlightGear code==
FlighGear already has an "Owner Drawn instrument" in flightgear/src/Instrumentation/od_gauge.cxx and .hxx. It already sets up a pre-render camera and a texture for it, and has a visitor to replace model's texture with the custom texture.
FlighGear already has an "Owner Drawn instrument" in flightgear/src/Instrumentation/od_gauge.cxx and .hxx (this is now in canvas/simgear). It already sets up a pre-render camera and a texture for it, and has a visitor to replace model's texture with the custom texture.


Using it would be something like this:
Using it would be something like this:

Navigation menu