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

Method draw

src/SFML/Graphics/Sprite.cpp:118–125  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

116
117////////////////////////////////////////////////////////////
118void Sprite::draw(RenderTarget& target, RenderStates states) const
119{
120 states.transform *= getTransform();
121 states.texture = m_texture;
122 states.coordinateType = CoordinateType::Pixels;
123
124 target.draw(m_vertices.data(), m_vertices.size(), PrimitiveType::TriangleStrip, states);
125}
126
127
128////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected