MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / render

Method render

src/components/SwitchComponent.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void SwitchComponent::render(const Eigen::Affine3f& parentTrans)
26{
27 //Renderer::pushClipRect(getGlobalOffset(), getSize());
28
29 Eigen::Affine3f trans = parentTrans * getTransform();
30 Renderer::setMatrix(trans);
31
32 Font::get(*mWindow->getResourceManager(), Font::getDefaultPath(), FONT_SIZE_MEDIUM)->drawText(mState ? "ON" : "OFF", Eigen::Vector2f(0, 0), mState ? 0x00FF00FF : 0xFF0000FF);
33
34 //Renderer::popClipRect();
35
36 GuiComponent::renderChildren(trans);
37}
38
39bool SwitchComponent::getState()
40{

Callers

nothing calls this directly

Calls 3

setMatrixFunction · 0.85
drawTextMethod · 0.80
getResourceManagerMethod · 0.80

Tested by

no test coverage detected