Unify and improve texture updating (Do not create new references)

This commit is contained in:
Flamefire committed 2014-09-20 17:17:34 +02:00
1 parent 632b90a0e3
commit be67b039d6
9 files changed
+74 -97

No files matched your search

+8
View File
@@ -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)