//TextureColorManager.cpp #include "TextureColorManager.h" #include "globals.h" namespace Framework { /** * Function: TextureColorManager Constructor * Purpose: **/ TextureColorManager::TextureColorManager(HTEXTURE texture, float x, float y, float w, float h) { mpTexture = hge->Texture_Lock(texture, true, x, y, w, h); hge->Texture_Unlock(texture); mWidth = w; } /** * Function: Copy Constructor * Purpose: **/ TextureColorManager::TextureColorManager(TextureColorManager &texturecolormanager) { *this = texturecolormanager; } /** * Function: Destructor * Purpose: **/ TextureColorManager::~TextureColorManager() { delete mpTexture; } /** * Function: Overloaded "=" Operator * Purpose: **/ TextureColorManager& TextureColorManager::operator =(const TextureColorManager &texturecolormanager) { delete mpTexture; mpTexture = texturecolormanager.mpTexture; mWidth = texturecolormanager.mWidth; mColor = texturecolormanager.mColor; return *this; } }