Howto:Extending Canvas to support rendering 3D models: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Indentation, template)
No edit summary
Line 75: Line 75:
</syntaxhighlight>
</syntaxhighlight>


== Extending FGCanvasSystemAdapter ==
These are already the main building blocks required for loading a 3D model from disk ([[$FG_ROOT]]) and getting an <code>osg::Node*</code> in return.
These are already the main building blocks required for loading a 3D model from disk ([[$FG_ROOT]]) and getting an <code>osg::Node*</code> in return.
Next, we need to add this as a method to FGCanvasSystemAdapter to expose this FlightGear-specific API to the Canvas subsystem living in SimGear:
Next, we need to add this as a method to FGCanvasSystemAdapter to expose this FlightGear-specific API to the Canvas subsystem living in SimGear:

Navigation menu