2012-11-04 13:18:31 +00:00
|
|
|
/*
|
|
|
|
* FGCanvasSystemAdapter.hxx
|
|
|
|
*
|
|
|
|
* Created on: 02.11.2012
|
|
|
|
* Author: tom
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FG_CANVASSYSTEMADAPTER_HXX_
|
|
|
|
#define FG_CANVASSYSTEMADAPTER_HXX_
|
|
|
|
|
|
|
|
#include <simgear/canvas/CanvasSystemAdapter.hxx>
|
|
|
|
|
|
|
|
namespace canvas
|
|
|
|
{
|
|
|
|
class FGCanvasSystemAdapter:
|
|
|
|
public simgear::canvas::SystemAdapter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual simgear::canvas::FontPtr getFont(const std::string& name) const;
|
|
|
|
virtual void addCamera(osg::Camera* camera) const;
|
|
|
|
virtual void removeCamera(osg::Camera* camera) const;
|
|
|
|
virtual osg::Image* getImage(const std::string& path) const;
|
2012-11-22 00:06:04 +00:00
|
|
|
|
2012-12-02 12:27:37 +00:00
|
|
|
virtual naContext getNasalContext() const;
|
2012-11-22 00:06:04 +00:00
|
|
|
virtual int gcSave(naRef r);
|
|
|
|
virtual void gcRelease(int key);
|
2012-11-27 12:56:39 +00:00
|
|
|
virtual naRef callMethod( naRef code,
|
|
|
|
naRef self,
|
|
|
|
int argc,
|
|
|
|
naRef* args,
|
|
|
|
naRef locals );
|
2012-11-04 13:18:31 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* FG_CANVASSYSTEMADAPTER_HXX_ */
|