X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FHud.hh;h=30c01363435a73becfe351528b1d07f0514fa0bb;hb=af88821a172c4dfd138b91b2a5148ae50b502fa2;hp=7cf2504b7d4a376fe1888d25c3b76acda7542c84;hpb=831f04d4bc19a390415ac0bbac4331c7a65509bc;p=chaz%2Fyoink diff --git a/src/Hud.hh b/src/Hud.hh index 7cf2504..30c0136 100644 --- a/src/Hud.hh +++ b/src/Hud.hh @@ -20,8 +20,7 @@ #include #include //#include -#include -#include +#include #include "GameState.hh" @@ -34,7 +33,7 @@ class ProgressBar : public moof::drawable { public: - ProgressBar(const moof::texture& tilemap, int index); + ProgressBar(const moof::sprite& tilemap, int index); void resize(const moof::rectangle& rect); @@ -49,7 +48,7 @@ private: moof::vector2 mVertices[8]; moof::scalar mWidth; - moof::texture mTilemap; + moof::sprite mTilemap; moof::scalar mTexCoords[8]; moof::scalar mMidCoords[2]; }; @@ -58,7 +57,7 @@ private: class Hud; typedef boost::shared_ptr HudP; -class Hud : public moof::view +class Hud { public: @@ -97,7 +96,7 @@ private: ProgressBar mBar2; unsigned mNumber; - moof::texture mFont; + moof::sprite mFont; moof::matrix4 mProjection; };