4 * Created on: 03.07.2012
8 #ifndef CANVASWIDGET_HXX_
9 #define CANVASWIDGET_HXX_
11 #include <Main/fg_props.hxx>
20 CanvasWidget( int x, int y,
21 int width, int height,
22 SGPropertyNode* props,
23 const std::string& module );
24 virtual ~CanvasWidget();
26 virtual void doHit (int button, int updown, int x, int y);
27 virtual int checkKey(int key , int updown);
29 virtual void setSize ( int w, int h );
30 virtual void draw(int dx, int dy);
34 CanvasMgr *_canvas_mgr; // TODO maybe we should store this in some central
35 // location or make it static...
37 GLuint _tex_id; //<! OpenGL texture id if canvas
38 size_t _no_tex_cnt;//<! Count since how many frames we were not
39 // able to get the texture (for debugging)
40 SGPropertyNode_ptr _canvas; //<! Canvas root property node
41 SGPropertyNode *_mouse_x,
47 #endif /* CANVASWIDGET_HXX_ */