X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FHud.cc;h=84b7bc1964dd9e2ab8e1e539ffd90e3407d5f787;hp=c535da5a5808d854899e270d243ecb8c8a7b1302;hb=23d8f7a5fbd1eca7f46f2342c20ac5e28ae0128a;hpb=892da43bf5796e7c5f593a6d0f53bd797a36bd3e diff --git a/src/Hud.cc b/src/Hud.cc index c535da5..84b7bc1 100644 --- a/src/Hud.cc +++ b/src/Hud.cc @@ -33,7 +33,7 @@ #include -ProgressBar::ProgressBar(const Mf::Tilemap& tilemap, Mf::Tilemap::Index index) : +ProgressBar::ProgressBar(const Tilemap& tilemap, Tilemap::Index index) : progress_(0.0), tilemap_(tilemap) { @@ -119,8 +119,8 @@ void ProgressBar::draw(Mf::Scalar alpha) const Hud::Hud() : - bar1_(Mf::Tilemap("StatusBars"), 0), - bar2_(Mf::Tilemap("StatusBars"), 2), + bar1_(Tilemap("StatusBars"), 0), + bar2_(Tilemap("StatusBars"), 2), font_("Font") { resize(800, 600); @@ -129,10 +129,10 @@ Hud::Hud() : void Hud::resize(int width, int height) { - cml::matrix_orthographic_RH( projection_, - 0.0f, - Mf::Scalar(width), 0.0f, Mf::Scalar(height), - 1.0f, -1.0f, cml::z_clip_neg_one); + cml::matrix_orthographic_RH(projection_, + SCALAR(0.0), + Mf::Scalar(width), SCALAR(0.0), Mf::Scalar(height), + SCALAR(1.0), SCALAR(-1.0), cml::z_clip_neg_one); // position the two progress bars at the top-left of the screen bar1_.resize(Mf::Rectangle(20, height - 51,