///////////////////////////////////////////////////////
| 252 | |
| 253 | //////////////////////////////////////////////////////////// |
| 254 | void Shape::draw(RenderTarget& target, RenderStates states) const |
| 255 | { |
| 256 | states.transform *= getTransform(); |
| 257 | states.coordinateType = CoordinateType::Pixels; |
| 258 | |
| 259 | // Render the inside |
| 260 | states.texture = m_texture; |
| 261 | target.draw(m_vertices, states); |
| 262 | |
| 263 | // Render the outline |
| 264 | if (m_outlineThickness != 0) |
| 265 | { |
| 266 | states.texture = nullptr; |
| 267 | target.draw(m_outlineVertices, states); |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | |
| 272 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no outgoing calls
no test coverage detected