Esempio n. 1
0
    private bool BootUp()
    {
        /* Material-Cache Set up */
        /* MEMO: Take into account possibility of generating materials without textures. */
        int countTexture = (null != TableTexture) ? TableTexture.Length : 0;

        if (0 >= countTexture)
        {
            countTexture++;
        }

        CacheMaterialAnimation = new Library_SpriteStudio6.Control.CacheMaterial();
        if (false == CacheMaterialAnimation.BootUp(countTexture * (int)Library_SpriteStudio6.KindOperationBlend.TERMINATOR_TABLEMATERIAL, false))
        {
            goto Start_ErrorEnd;
        }

        CacheMaterialEffect = new Library_SpriteStudio6.Control.CacheMaterial();
        if (false == CacheMaterialEffect.BootUp(countTexture * (int)Library_SpriteStudio6.KindOperationBlendEffect.TERMINATOR_TABLEMATERIAL, true))
        {
            goto Start_ErrorEnd;
        }

        /* Status Set */
        StatusIsBootup = true;

        return(true);

        Start_ErrorEnd :;
        return(false);
    }
Esempio n. 2
0
    internal bool CacheBootUpMaterial()
    {
        int countTexture = CountGetCellMap(false);

        if (null != TableTexture)
        {               /* Already booted up */
            return(true);
        }

        TableTexture  = new Texture[countTexture];
        CacheMaterial = new Library_SpriteStudio6.Control.CacheMaterial();

#if false
        if (false == CacheMaterial.BootUp(countTexture * (int)Library_SpriteStudio6.KindOperationBlend.TERMINATOR, false))
        {
            return(false);
        }
        return(true);
#else
        return(CacheMaterial.BootUp(countTexture * (int)Library_SpriteStudio6.KindOperationBlendEffect.TERMINATOR, false));
#endif
    }