static char units[5];
-deque<instr_item *> HUD_deque;
+deque<SGSharedPtr<instr_item> > HUD_deque;
fgTextList HUD_TextList;
fgLineList HUD_LineList;
extern fgLineList HUD_StippleLineList;
-class instr_item { // An Abstract Base Class (ABC)
+class instr_item : public SGReferenced { // An Abstract Base Class (ABC)
private:
static UINT instances; // More than 64K instruments? Nah!
static int brightness;
#define _HUD_HXX
#include <simgear/compiler.h>
+#include <simgear/props/condition.hxx>
#ifdef HAVE_CONFIG_H
# include <config.h>
class FGViewer;
-class SGCondition;
class LineSegment {
float _center_x, _center_y;
private:
- SGCondition *_condition;
+ SGSharedPtr<SGCondition> _condition;
float _disp_factor; // Multiply by to get numbers shown on scale.
float _scr_span; // Working values for draw;
int _digits;
float _pointer_width;
float _pointer_length;
- SGCondition *_blink_condition;
+ SGSharedPtr<SGCondition> _blink_condition;
double _blink_interval;
double _blink_target; // time for next blink state change
bool _blink_state;
virtual void draw();
private:
- SGCondition *_active_condition; // stadiametric (true) or standby (false)
+ SGSharedPtr<SGCondition> _active_condition; // stadiametric (true) or standby (false)
Input _diameter; // inner/outer radius relation
float _bullet_size;
float _inner_radius;
#endif
#include <simgear/math/SGLimits.hxx>
-#include <simgear/props/condition.hxx>
#include "HUD.hxx"
# include <config.h>
#endif
-#include <simgear/props/condition.hxx>
#include "HUD.hxx"
# include <config.h>
#endif
-#include <simgear/props/condition.hxx>
#include "HUD.hxx"
// Do any I/O channel work that might need to be done
globals->get_io()->update( real_delta_time_sec );
- // see if we need to load any deferred-load textures
- globals->get_matlib()->load_next_deferred();
-
// Run audio scheduler
#ifdef ENABLE_AUDIO_SUPPORT
if ( globals->get_soundmgr()->is_working() ) {
if (!deptime)
deptime = (*flights.begin())->getDepartureTime();
FGScheduledFlightVecIterator i = flights.begin();
- SG_LOG (SG_GENERAL, SG_INFO,"Processing registration " << registration << " with callsign " << (*i)->getCallSign());
+ SG_LOG (SG_GENERAL, SG_DEBUG,"Processing registration " << registration << " with callsign " << (*i)->getCallSign());
if (AIManagerRef)
{
// Check if this aircraft has been released.