Commit f15fd9ec authored by Robert Menzel's avatar Robert Menzel
Browse files

added method to delete texture data

parent 5a327eed
...@@ -27,8 +27,8 @@ public: ...@@ -27,8 +27,8 @@ public:
Animation() : Animation() :
mInited(false), mInited(false),
mStopped(false) {}; mStopped(false) {}
virtual ~Animation() {}; virtual ~Animation() {}
virtual void init() = 0; virtual void init() = 0;
virtual long update(uint_t msec) = 0; virtual long update(uint_t msec) = 0;
......
...@@ -101,6 +101,9 @@ public: ...@@ -101,6 +101,9 @@ public:
void setPadding(GLsizei _padding){ paddingBytesPerRow = _padding; } void setPadding(GLsizei _padding){ paddingBytesPerRow = _padding; }
void setSize (const glm::uvec3 &_size) { width = _size.x; height = _size.y; depth = _size.z; } 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 \/ // ================================================================================================== FIELDS \/
// ========================================================================================================= \/ // ========================================================================================================= \/
......
Supports Markdown
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