20,741
edits
Line 1,989: | Line 1,989: | ||
# create a new set of files in $SG_SRC/canvas, named CanvasHttpdPlacement.cxx (hxx) | # create a new set of files in $SG_SRC/canvas, named CanvasHttpdPlacement.cxx (hxx) | ||
# Use the CanvasObjectPlacement files as template, rename those files, change the include guards/comments respectively | # Use the CanvasObjectPlacement files as template, rename those files, change the include guards/comments respectively | ||
# open FGCanvasSystemAdapter.cxx/hxx in $FG_SRC/Canvas to add helpers for your new placement, e.g. getImage() | # open FGCanvasSystemAdapter.cxx/hxx in $FG_SRC/Canvas to add helpers for your new placement, e.g. getImage(): http://wiki.flightgear.org/Canvas_Troubleshooting#Serializing_a_Canvas_to_disk_.28as_raster_image.29 | ||
# ... | # ... | ||
# open $FG_SRC/Canvas/canvas_mgx.cxx, navgate to <code>CanvasMgr::init()</code>, add your new placement there | # open $FG_SRC/Canvas/canvas_mgx.cxx, navgate to <code>CanvasMgr::init()</code>, add your new placement there |