46
edits
(Short introduction to od_gauge) |
m (Correct list formatting) |
||
| Line 50: | Line 50: | ||
Using it would be something like this: | Using it would be something like this: | ||
* Create a custom instrument which inherits od_gauge. class CameraInstrument : public FGODGauge { ... } | |||
* Implement the init and update functions, whatever instrument manager requires. | |||
* In init set up proper texture sizes and call allocRT(). | |||
* In update function update camera position according to viewer->getAbsolutePosition(...). | |||
* Add the custom instrument to instrument_mgr.cxx. | |||
=Part 2: Getting that texture into an instrument= | =Part 2: Getting that texture into an instrument= | ||
edits