virtual void init ();
virtual void bind ();
virtual void unbind ();
- virtual void update (int dt);
+ virtual void update (double dt);
virtual void update (GLfloat winx, GLfloat winw, GLfloat winy, GLfloat winh);
// transfer pointer ownership!!!
// Background texture.
virtual void setBackground (ssgTexture * texture);
+ // Background multiple textures.
+ virtual void setMultiBackground (ssgTexture * texture, int idx);
+
// Make the panel visible or invisible.
virtual bool getVisibility () const;
virtual void setVisibility (bool visibility);
virtual bool doMouseAction (int button, int updown, int x, int y);
private:
+ void setupVirtualCockpit();
+ void cleanupVirtualCockpit();
+
mutable bool _visibility;
mutable bool _mouseDown;
mutable int _mouseButton, _mouseX, _mouseY;
int _x_offset;
int _y_offset;
int _view_height;
- bool _bound;
float _jitter;
const SGPropertyNode * _xsize_node;
const SGPropertyNode * _ysize_node;
ssgTexture * _bg;
+ ssgTexture * _mbg[8];
// List of instruments in panel.
instrument_list_type _instruments;
};
class FGTextLayer : public FGInstrumentLayer
{
public:
- typedef enum ChunkType {
+ enum ChunkType {
TEXT,
TEXT_VALUE,
DOUBLE_VALUE
// end of panel.hxx
+