Go to the documentation of this file.00001 #pragma once
00002 #include "GSingletonManager.h"
00003 #include "GVec4f.h"
00004 #include <map>
00005 #include <deque>
00006 using namespace std;
00007
00008 struct FontDesc
00009 {
00010 float MinCoord[2];
00011 float MaxCoord[2];
00012 float Width;
00013 float Height;
00014 };
00015
00016 class GSuxManager: public GSingletonManager<GSuxManager>
00017 {
00018 std::map<int, FontDesc> Font;
00019 int iTexId;
00020 float vertices[8];
00021 float texcoords[8];
00022 unsigned short indices[6];
00023
00024 double lastPop;
00025 std::deque<char *> statusQueue;
00026
00027 public:
00028 GSuxManager(void);
00029 ~GSuxManager(void);
00030
00031 int Initialize(char *suxfilename, char *texturefilename);
00032 int GetTexId(void);
00033 std::map<int, FontDesc> GetFont(void);
00034 FontDesc GetFontDesc(int L);
00035 int RenderText(char *Text, GVec4f Pos);
00036 int UpdateStatusOutput(double time, double dtime);
00037 int PushStatusOutput(char *output);
00038 int RenderStatusOutput(double time, double dtime, int FLAGS);
00039 };