All Classes Functions Typedefs
IMFDDrawsHUD.hpp
1 // ==============================================================
2 // ORBITER AUX LIBRARY: Support for HUD drawing from MFD context
3 // http://sf.net/projects/enjomitchsorbit
4 // Part of the ORBITER SDK
5 //
6 // Warning! This library is a HACK and it may stop working
7 // in future versions of Orbiter API if the library isn't
8 // maintained anymore. Note however that it's very easy to do so.
9 //
10 // Copyright (C) 2008 Steve "agentgonzo" Arch - most of work
11 // Copyright (C) 2012 Szymon "Enjo" Ender - created a framework
12 //
13 // All rights reserved
14 //
15 // MFDHUDDrawer is free software: you can redistribute it
16 // and/or modify it under the terms of the GNU Lesser General Public
17 // License as published by the Free Software Foundation, either version
18 // 3 of the License, or (at your option) any later version.
19 //
20 // MFDHUDDrawer is distributed in the hope that it will
21 // be useful, but WITHOUT ANY WARRANTY; without even the implied
22 // warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 // See the GNU Lesser General Public License for more details.
24 //
25 // You should have received a copy of the GNU Lesser General Public
26 // License along with MFDHUDDrawer. If not, see
27 // <http://www.gnu.org/licenses/>.
28 // ==============================================================
29 
30 #ifndef IMFDDrawsHUD_HPP
31 #define IMFDDrawsHUD_HPP
32 
33 #include "Orbitersdk.h"
34 
35 
36 namespace EnjoLib
37 {
38 namespace MFDGoodies
39 {
41 
45 {
46 public:
48  IMFDDrawsHUD();
50  virtual ~IMFDDrawsHUD();
51 
53 
56  virtual bool ShouldDrawHUD() const = 0;
57 #ifndef ORB2006
58 
59  virtual void DrawHUD(int mode, const HUDPAINTSPEC *hps, oapi::Sketchpad * skp) = 0;
60 #endif
61 
62 
66  virtual void DrawHUD(int mode, const HUDPAINTSPEC *hps, HDC hDC);
67 
68 protected:
69 private:
70 };
71 }
72 }
73 
74 #endif // IMFDDrawsHUD_HPP