Commit f15fd9ec authored by Robert Menzel's avatar Robert Menzel

added method to delete texture data

parent 5a327eed
......@@ -27,8 +27,8 @@ public:
Animation() :
mInited(false),
mStopped(false) {};
virtual ~Animation() {};
mStopped(false) {}
virtual ~Animation() {}
virtual void init() = 0;
virtual long update(uint_t msec) = 0;
......
......@@ -101,6 +101,9 @@ public:
void setPadding(GLsizei _padding){ paddingBytesPerRow = _padding; }
void setSize (const glm::uvec3 &_size) { width = _size.x; height = _size.y; depth = _size.z; }
//! deletes the data attached to this object
void deleteData() { delete[] pData; pData = NULL; }
// ========================================================================================================= \/
// ================================================================================================== FIELDS \/
// ========================================================================================================= \/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment