MCPcopy Create free account
hub / github.com/TankOs/SFGUI / Update

Method Update

src/SFGUI/PrimitiveTexture.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14void PrimitiveTexture::Update( const sf::Image& data ) {
15 if( data.getSize() != size ) {
16#if defined( SFGUI_DEBUG )
17 std::cerr << "Tried to update texture with mismatching image size.\n";
18#endif
19 return;
20 }
21
22 sfg::Renderer::Get().UpdateImage( offset, data );
23}
24
25}

Callers

nothing calls this directly

Calls 1

UpdateImageMethod · 0.80

Tested by

no test coverage detected