1 #include "../Instrument.h" 31 int hdgDegree =
static_cast<int>(D3DXToDegree(
hdg));
32 if (hdgDegree > 360) hdgDegree -= 360;
33 if (hdgDegree < 0) hdgDegree += 360;
34 swprintf_s(msg, 99, L
"%03i", hdgDegree);
35 DrawTextW(msg, 247, 472, DT_NOCLIP, D3DXCOLOR(0.0f, 1.0f, 0.0f, 1.0f), 1,
"HeadingReadout");
virtual void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip)
void Initialize(Bus *prmBus, Logger *prmLogger, DEVICE_OBJECT *prmDevice, int prmScreenWidth, int prmScreenHeight, std::vector< Font > *prmFonts, bool prmFlip) override
D3D10_TEXTURE2D_DESC desc
float HeadingTrue
(4) Heading–primary flight crew reference (if selectable, record discrete, true or magnetic); ...
HeadingIndicator(int prmX, int prmY, float prmXScale, float prmYScale)
Abstract base class for instrumentation By definition, instruments don't do any of the work (they don...
std::string pathAndFilename
void Render(float fElapsed) override
void Initialize(Logger *prmLogger, Bus *prmBus, DEVICE_OBJECT *prmpDevice, int prmScreenHeight, int prmElementX, int prmElementY, bool prmFlip)