Пример #1
0
            private void ClearRenderTexturesTill(int maxTextures)
            {
                var toClear = rTex.Count - maxTextures;

                for (var i = 0; i < toClear; i++)
                {
                    rTex[i].DestroyRtex();
                }

                QcSharp.SetMaximumLength(rTex, maxTextures);
            }
Пример #2
0
            public void BackupTexture2D(int maxTextures, TextureMeta id)
            {
                QcSharp.SetMaximumLength(tex2D, maxTextures);

                if (maxTextures <= 0)
                {
                    return;
                }

                var copyPix = (Color[])id.Pixels.Clone();

                if (tex2D.Count < maxTextures)
                {
                    tex2D.Add(new Texture2DBackup(copyPix, id, _order));
                }
                else
                {
                    QcSharp.MoveFirstToLast(tex2D).Set(copyPix, id, _order);
                }



                _order++;
            }