Skip to content
Newer
Older
100644 47 lines (39 sloc) 1.76 KB
ecb805c @logzero Style: Add GPL header where missing (used a script).
logzero authored
1 /************************************************************************/
2 /* */
3 /* This file is part of VDrift. */
4 /* */
5 /* VDrift is free software: you can redistribute it and/or modify */
6 /* it under the terms of the GNU General Public License as published by */
7 /* the Free Software Foundation, either version 3 of the License, or */
8 /* (at your option) any later version. */
9 /* */
10 /* VDrift is distributed in the hope that it will be useful, */
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
13 /* GNU General Public License for more details. */
14 /* */
15 /* You should have received a copy of the GNU General Public License */
16 /* along with VDrift. If not, see <http://www.gnu.org/licenses/>. */
17 /* */
18 /************************************************************************/
19
9844c7f @logzero Analog hud gauges wip.
logzero authored
20 #ifndef _HUDBAR_H
21 #define _HUDBAR_H
22
8032bf5 @logzero Update graphics include paths.
logzero authored
23 #include "graphics/vertexarray.h"
24 #include "graphics/drawable.h"
9844c7f @logzero Analog hud gauges wip.
logzero authored
25
26 class SCENENODE;
27 class TEXTURE;
28
29 class HUDBAR
30 {
31 public:
32 void Set(
33 SCENENODE & parent,
34 std::tr1::shared_ptr<TEXTURE> bartex,
35 float x, float y, float w, float h,
36 float opacity,
37 bool flip);
38
39 void SetVisible(SCENENODE & parent, bool newvis);
40
41 private:
42 keyed_container<DRAWABLE>::handle draw;
43 VERTEXARRAY verts;
44 };
45
46 #endif // _HUDBAR_H
Something went wrong with that request. Please try again.