Unify and improve texture updating (Do not create new references)
This commit is contained in:
1 parent
632b90a0e3
commit
be67b039d6
9 files changed
+74
-97
No files matched your search
@@ -56,6 +56,14 @@ namespace VocaluxeLib.Draw
|
||||
Rect = new SRectF(0f, 0f, origSize.Width, origSize.Height, 0f);
|
||||
}
|
||||
|
||||
public void CopyFieldsFrom(CTextureRef other)
|
||||
{
|
||||
ID = other.ID;
|
||||
OrigSize = other.OrigSize;
|
||||
Rect = other.Rect;
|
||||
Color = other.Color;
|
||||
}
|
||||
|
||||
~CTextureRef()
|
||||
{
|
||||
if (ID >= 0)
|
||||
|
||||
Reference in new issue
Block a user