Go to the documentation of this file.00001 #pragma once
00002 #define NOMINMAX
00003
00004 #include "ggraphicsobject.h"
00005 #include "Types.h"
00006 #include "constants.h"
00007 #include "GHudElement.h"
00008
00009 #include <windows.h>
00010
00011 class GHud : public GGraphicsObject
00012 {
00013 protected:
00014 vector<GHudElement *> Elements;
00015
00016 public:
00017 GHud(void);
00018 ~GHud(void);
00019 int AddElement(std::string name, float _x, float _y, float _width, float _height, std::string filename, std::string alpha = "");
00020 int Draw(double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS);
00021 int DrawSprites(double time, double dtime, GMatrix16 *viewmatrix, GMatrix16 *worldmatrix, int FLAGS);
00022 vector<GHudElement *> GetElements(void);
00023 GHudElement *GetElementForName(char *);
00024 int Update(double time, double dtime);
00025 };