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

Method getPixelsPtr

src/SFML/Graphics/Image.cpp:703–712  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

701
702////////////////////////////////////////////////////////////
703const std::uint8_t* Image::getPixelsPtr() const
704{
705 if (!m_pixels.empty())
706 {
707 return m_pixels.data();
708 }
709
710 err() << "Trying to access the pixels of an empty image" << std::endl;
711 return nullptr;
712}
713
714
715////////////////////////////////////////////////////////////

Callers 5

Image.test.cppFile · 0.80
setIconMethod · 0.80
loadFromImageMethod · 0.80
updateMethod · 0.80
setupTextureImageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected