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

Method swap

src/SFML/Graphics/Texture.cpp:1046–1058  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1044
1045////////////////////////////////////////////////////////////
1046void Texture::swap(Texture& right) noexcept
1047{
1048 std::swap(m_size, right.m_size);
1049 std::swap(m_actualSize, right.m_actualSize);
1050 std::swap(m_texture, right.m_texture);
1051 std::swap(m_isSmooth, right.m_isSmooth);
1052 std::swap(m_sRgb, right.m_sRgb);
1053 std::swap(m_isRepeated, right.m_isRepeated);
1054 std::swap(m_pixelsFlipped, right.m_pixelsFlipped);
1055 std::swap(m_fboAttachment, right.m_fboAttachment);
1056 std::swap(m_hasMipmap, right.m_hasMipmap);
1057 std::swap(m_cacheId, right.m_cacheId);
1058}
1059
1060
1061////////////////////////////////////////////////////////////

Callers 5

cleanupMethod · 0.45
findGlyphRectMethod · 0.45
swapFunction · 0.45
resizeMethod · 0.45
~SoundBufferMethod · 0.45

Calls 1

swapFunction · 0.70

Tested by

no test coverage detected