void ExplosionOfProjectile::genTextures()
{
QImage image
( ":/Texture/TankSpriteSheet.png" );
image = image.mirrored( false, true );
frame = image.copy( 257, 112, 15, 15 );
m_textures.push_back( new QOpenGLTexture( frame ) );
frame = image.copy( 272, 112, 16, 16 );
m_textures.push_back( new QOpenGLTexture( frame ) );
frame = image.copy( 287, 111, 18, 18 );
m_textures.push_back( new QOpenGLTexture( frame ) );
}
void ExplosionOfProjectile::genTextures()
{
QImage image( ":/Texture/TankSpriteSheet.png" );
image = image.mirrored( false, true );
QImage frame;
frame = image.copy( 257, 112, 15, 15 );
m_textures.push_back( new QOpenGLTexture( frame ) );
frame = image.copy( 272, 112, 16, 16 );
m_textures.push_back( new QOpenGLTexture( frame ) );
frame = image.copy( 287, 111, 18, 18 );
m_textures.push_back( new QOpenGLTexture( frame ) );
}
To copy to clipboard, switch view to plain text mode
Bookmarks