コード例 #1
0
        public void CopyFrom(ProTeGe_Texture other, bool keepMySize)
        {
            if (size == other.size)
            {
                Graphics.Blit(other.renderTexture, renderTexture);
                return;
            }

            int mySize = size;

            Release();

            if (keepMySize)
            {
                ProTeGe_Texture temp = new ProTeGe_Texture(other.renderTexture, true);
                temp.size = mySize;
                _texture  = temp.renderTexture;

                _dontRelease = false;

                return;
            }

            _texture = GetTemp(other.size);
            Graphics.Blit(other.renderTexture, renderTexture);
        }
コード例 #2
0
 public ProTeGe_Texture(ProTeGe_Texture other, bool dontRelease = false)
 {
     CopyFrom(other, false);
     _dontRelease = dontRelease;
 }