示例#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);
    }
示例#2
0
 void OnDestroy()
 {
     /* All Material-Cache shut-down */
     if (null != CacheMaterial)
     {
         CacheMaterial.ShutDown(true);
         CacheMaterial = null;
     }
 }
示例#3
0
 void OnDestroy()
 {
     /* All Material-Cache shut-down */
     if (null != CacheMaterialAnimation)
     {
         CacheMaterialAnimation.ShutDown(true);
         CacheMaterialAnimation = null;
     }
     if (null != CacheMaterialEffect)
     {
         CacheMaterialEffect.ShutDown(true);
         CacheMaterialEffect = null;
     }
 }
示例#4
0
    /* ----------------------------------------------- Functions */
    #region Functions
    public void CleanUp()
    {
        Version = (KindVersion)(-1);

        DataCellMap   = null;
        DataAnimation = null;
        DataEffect    = null;
        DataSequence  = null;

        PrefabAnimation = null;
        PrefabEffect    = null;

        TableTexture           = null;
        CacheMaterialAnimation = null;
        CacheMaterialEffect    = null;
    }
示例#5
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
    }