MCPcopy Create free account
hub / github.com/TankOs/SFGUI / ~PrimitiveTexture

Method ~PrimitiveTexture

src/SFGUI/PrimitiveTexture.cpp:8–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6namespace sfg {
7
8PrimitiveTexture::~PrimitiveTexture() {
9 if( sfg::Renderer::Exists() ) {
10 sfg::Renderer::Get().UnloadImage( offset );
11 }
12}
13
14void PrimitiveTexture::Update( const sf::Image& data ) {
15 if( data.getSize() != size ) {

Callers

nothing calls this directly

Calls 1

UnloadImageMethod · 0.80

Tested by

no test coverage detected