コード例 #1
0
ファイル: WaterTile.cs プロジェクト: warrocky/FightLands
        private void startTextureLoad()
        {
            waterFramesTextures = createTexture();
            //waterTexture.setContent(newContent, new Point((int)size.X/reduceFactor, (int)size.Y/reduceFactor), AssetTextureStrip.StripOrientation.TopToBottom);
            texture      = new DrawableTextureArrayAsStrip(waterFramesTextures, this);
            texture.size = size;

            texture.layer = 0.99f;


            lock (textureLoadedLock)
            {
                lock (loadingLock)
                {
                    textureLoaded  = true;
                    loadingTexture = false;
                }
            }
        }
コード例 #2
0
ファイル: WaterTile.cs プロジェクト: warrocky/FightLands
        private void startTextureLoad()
        {
            waterFramesTextures = createTexture();
            //waterTexture.setContent(newContent, new Point((int)size.X/reduceFactor, (int)size.Y/reduceFactor), AssetTextureStrip.StripOrientation.TopToBottom);
            texture = new DrawableTextureArrayAsStrip(waterFramesTextures, this);
            texture.size = size;

            texture.layer = 0.99f;

            lock (textureLoadedLock)
            {
                lock (loadingLock)
                {
                    textureLoaded = true;
                    loadingTexture = false;
                }
            }
        }