use unique_ptr to hold the Layers vector

This commit is contained in:
2019-02-24 13:19:15 +01:00
parent 3d1412aee2
commit dfa44dbb55
13 changed files with 216 additions and 200 deletions

View File

@@ -12,6 +12,21 @@ RTT::RTT()
bound = false;
}
RTT::RTT(RTT&& other)
{
fboID = other.fboID;
rboID = other.rboID;
w = other.w;
h = other.h;
bound = other.bound;
other.fboID = 0;
other.rboID = 0;
other.w = 0;
other.h = 0;
other.bound = false;
}
RTT::~RTT()
{
//destroy();