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