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

Method draw

examples/shader/Shader.cpp:197–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 void draw(sf::RenderTarget& target, sf::RenderStates states) const override
198 {
199 states.shader = &m_shader;
200 target.draw(sf::Sprite{m_surface.getTexture()}, states);
201 }
202
203 explicit Edge(sf::RenderTexture&& surface, sf::Texture&& backgroundTexture, sf::Texture&& entityTexture, sf::Shader&& shader) :
204 m_surface(std::move(surface)),

Callers 15

mainFunction · 0.45
drawMethod · 0.45
drawMethod · 0.45
drawMethod · 0.45
updateMethod · 0.45
drawMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
runMethod · 0.45
mainFunction · 0.45

Calls 1

getTextureMethod · 0.80

Tested by

no test coverage detected