MCPcopy Create free account
hub / github.com/SFML/SFML / onDraw

Method onDraw

examples/sound_effects/SoundEffects.cpp:138–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136 }
137
138 void onDraw(sf::RenderTarget& target, sf::RenderStates states) const override
139 {
140 auto statesCopy(states);
141 statesCopy.transform = sf::Transform::Identity;
142 statesCopy.transform.translate(m_position);
143
144 target.draw(m_listener, states);
145 target.draw(m_soundShape, statesCopy);
146 }
147
148 void onStart() override
149 {

Callers

nothing calls this directly

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected