Esempio n. 1
0
void SkImageManager::ShowResourcesToGD(gd::ArbitraryResourceWorker & worker)
{
    std::map<std::string, boost::shared_ptr<SFMLTextureWrapper> >::iterator it = m_images.begin();

    for(; it != m_images.end(); it++)
    {
        worker.ExposeImage(const_cast<std::string&>(it->first));
    }

    for(unsigned int a = 0; a < m_needToBeLoaded.size(); a++)
    {
        std::string value = m_needToBeLoaded.front();
        m_needToBeLoaded.pop();
        m_needToBeLoaded.push(value);

        worker.ExposeImage(value);
    }
}
Esempio n. 2
0
void SpriteObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
    for ( unsigned int j = 0; j < GetAnimationsCount();j++ )
    {
        for ( unsigned int k = 0;k < GetAnimation( j ).GetDirectionsCount();k++ )
        {
            for ( unsigned int l = 0;l < GetAnimation( j ).GetDirection(k).GetSpritesCount();l++ )
                worker.ExposeImage(GetAnimation( j ).GetDirection(k).GetSprite(l).GetImageName());
        }
    }
}
Esempio n. 3
0
void Box3DObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
    worker.ExposeImage(frontTextureName);
    worker.ExposeImage(topTextureName);
    worker.ExposeImage(bottomTextureName);
    worker.ExposeImage(leftTextureName);
    worker.ExposeImage(rightTextureName);
    worker.ExposeImage(backTextureName);
}
Esempio n. 4
0
void WindowExtension::ExposeActionsResources(gd::Instruction & action, gd::ArbitraryResourceWorker & worker)
{
    if ( action.GetType() == "EcrireTexte" && !action.GetParameter( 6 ).GetPlainString().empty() )
    {
        std::string parameter = action.GetParameter(6).GetPlainString();
        worker.ExposeFile(parameter);
        action.SetParameter(6, parameter);
    }
    if ( action.GetType() == "SetWindowIcon" && !action.GetParameter( 1 ).GetPlainString().empty() )
    {
        std::string parameter = action.GetParameter(1).GetPlainString();
        worker.ExposeImage(parameter);
        action.SetParameter(1, parameter);
    }
}
Esempio n. 5
0
void TiledSpriteObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
    worker.ExposeImage(textureName);
}
Esempio n. 6
0
void TileMapObject::ExposeResources(gd::ArbitraryResourceWorker & worker)
{
    worker.ExposeImage(tileSet.Get().textureName);
}
Esempio n. 7
0
void ParticleEmitterObject::ExposeResources(
    gd::ArbitraryResourceWorker& worker) {
  gd::String texture = GetParticleTexture();
  worker.ExposeImage(texture);
  SetParticleTexture(texture);
}