mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Fix mis-declared render methods for input setup GUIs.
This commit is contained in:
parent
a82684ec1a
commit
04ffc7447c
|
@ -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::shared_ptr<Font> font = Font::get(*mWindow->getResourceManager(), Font::getDefaultPath(), FONT_SIZE_MEDIUM);
|
||||||
|
|
||||||
std::string playerString;
|
std::string playerString;
|
||||||
|
|
|
@ -10,7 +10,7 @@ public:
|
||||||
|
|
||||||
bool input(InputConfig* config, Input input);
|
bool input(InputConfig* config, Input input);
|
||||||
void update(int deltaTime);
|
void update(int deltaTime);
|
||||||
void render();
|
void render(const Eigen::Affine3f& parentTrans) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void done();
|
void done();
|
||||||
|
|
|
@ -75,8 +75,11 @@ bool GuiInputConfig::input(InputConfig* config, Input input)
|
||||||
return false;
|
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::shared_ptr<Font> font = Font::get(*mWindow->getResourceManager(), Font::getDefaultPath(), FONT_SIZE_MEDIUM);
|
||||||
|
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
|
|
|
@ -11,7 +11,7 @@ public:
|
||||||
|
|
||||||
bool input(InputConfig* config, Input input);
|
bool input(InputConfig* config, Input input);
|
||||||
void update(int deltaTime);
|
void update(int deltaTime);
|
||||||
void render();
|
void render(const Eigen::Affine3f& parentTrans) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string mErrorMsg;
|
std::string mErrorMsg;
|
||||||
|
|
Loading…
Reference in a new issue