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); }
public ProTeGe_Texture(ProTeGe_Texture other, bool dontRelease = false) { CopyFrom(other, false); _dontRelease = dontRelease; }