1 #include "../Instrument.h" 14 const float newwidth = sqrtf(powf(static_cast<float>(
width), 2.0f) + powf(static_cast<float>(
height), 2.0f));
15 const float leftmargin = (newwidth -
width) / 2.0f;
16 const float newheight = newwidth;
17 const float topmargin = (newheight -
height) / 2.0f;
67 if (roll < -D3DX_PI*0.5f && bus->RollAttitude > D3DX_PI*0.5f)
88 if (pitchDev > D3DXToRadian(20.0f)) pitchDev = D3DXToRadian(20.0f);
89 if (pitchDev < D3DXToRadian(-20.0f)) pitchDev = D3DXToRadian(-20.0f);
virtual void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip)
void Render(float fElapsed) override
enum Bus::Afcs::LateralModes CurrentLateralMode
float PitchAttitude
(6) Pitch attitude;
D3D10_TEXTURE2D_DESC desc
float RollAttitude
(7) Roll attitude;
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
Abstract base class for instrumentation By definition, instruments don't do any of the work (they don...
std::string pathAndFilename
enum Bus::Afcs::VerticalModes StandbyVerticalMode
enum Bus::Afcs::VerticalModes CurrentVerticalMode
AttitudeIndicator(int prmX, int prmY, int prmWidth, int prmHeight, std::string prmTextureFile)
enum Bus::Afcs::LateralModes StandbyLateralMode
void Initialize(Logger *prmLogger, Bus *prmBus, DEVICE_OBJECT *prmpDevice, int prmScreenHeight, int prmElementX, int prmElementY, bool prmFlip)
float GlideslopeDeviation