Fix mis-declared render methods for input setup GUIs.

This commit is contained in:
Aloshi 2013-07-26 18:28:51 -05:00
parent a82684ec1a
commit 04ffc7447c
4 changed files with 10 additions and 4 deletions

View file

@ -81,8 +81,11 @@ void GuiDetectDevice::update(int deltaTime)
}
}
void GuiDetectDevice::render()
void GuiDetectDevice::render(const Eigen::Affine3f& parentTrans)
{
Eigen::Affine3f trans = parentTrans * getTransform();
Renderer::setMatrix(trans);
std::shared_ptr<Font> font = Font::get(*mWindow->getResourceManager(), Font::getDefaultPath(), FONT_SIZE_MEDIUM);
std::string playerString;

View file

@ -10,7 +10,7 @@ public:
bool input(InputConfig* config, Input input);
void update(int deltaTime);
void render();
void render(const Eigen::Affine3f& parentTrans) override;
private:
void done();

View file

@ -75,8 +75,11 @@ bool GuiInputConfig::input(InputConfig* config, Input input)
return false;
}
void GuiInputConfig::render()
void GuiInputConfig::render(const Eigen::Affine3f& parentTrans)
{
Eigen::Affine3f trans = parentTrans * getTransform();
Renderer::setMatrix(trans);
std::shared_ptr<Font> font = Font::get(*mWindow->getResourceManager(), Font::getDefaultPath(), FONT_SIZE_MEDIUM);
std::stringstream stream;

View file

@ -11,7 +11,7 @@ public:
bool input(InputConfig* config, Input input);
void update(int deltaTime);
void render();
void render(const Eigen::Affine3f& parentTrans) override;
private:
std::string mErrorMsg;