Remove a lingering Boost usage
This commit is contained in:
parent
67d235a17e
commit
cab0dc12a1
1 changed files with 7 additions and 13 deletions
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
#include "canvas_mgr.hxx"
|
#include "canvas_mgr.hxx"
|
||||||
|
|
||||||
#include <boost/bind.hpp>
|
|
||||||
|
|
||||||
#include <Cockpit/od_gauge.hxx>
|
#include <Cockpit/od_gauge.hxx>
|
||||||
#include <Main/fg_props.hxx>
|
#include <Main/fg_props.hxx>
|
||||||
#include <Scripting/NasalModelData.hxx>
|
#include <Scripting/NasalModelData.hxx>
|
||||||
|
@ -79,16 +77,12 @@ void CanvasMgr::init()
|
||||||
// add our two placement factories
|
// add our two placement factories
|
||||||
sc::Canvas::addPlacementFactory
|
sc::Canvas::addPlacementFactory
|
||||||
(
|
(
|
||||||
"object",
|
"object", [](SGPropertyNode* placement, sc::CanvasPtr canvas) {
|
||||||
boost::bind
|
return FGODGauge::set_aircraft_texture(placement,
|
||||||
(
|
canvas->getTexture(),
|
||||||
&FGODGauge::set_aircraft_texture,
|
canvas->getCullCallback(),
|
||||||
_1,
|
canvas);
|
||||||
boost::bind(&sc::Canvas::getTexture, _2),
|
});
|
||||||
boost::bind(&sc::Canvas::getCullCallback, _2),
|
|
||||||
_2
|
|
||||||
)
|
|
||||||
);
|
|
||||||
|
|
||||||
sc::Canvas::addPlacementFactory("scenery-object", &addSceneObjectPlacement);
|
sc::Canvas::addPlacementFactory("scenery-object", &addSceneObjectPlacement);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue