20,741
edits
mNo edit summary |
|||
| Line 77: | Line 77: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
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 livinig in SimGear: | |||
<syntaxhighlight lang="cpp"> | |||
</syntaxhighlight> | |||
Next, we only need to coax our new Canvas element to use said <code>osg::Node</code> object. | Next, we only need to coax our new Canvas element to use said <code>osg::Node</code> object. | ||