//TextureColorManager.h #ifndef TEXTURECOLORMANAGER_H_ #define TEXTURECOLORMANAGER_H_ #include namespace Framework { class TextureColorManager { public: TextureColorManager(HTEXTURE texture, float x, float y, float w, float h); TextureColorManager(TextureColorManager &texturecolormanager); ~TextureColorManager(); TextureColorManager& operator=(TextureColorManager const &texturecolormanager); int GetA(int x, int y) {mColor = GETA(mpTexture[y*mWidth+x]); return mColor;}; int GetR(int x, int y) {mColor = GETR(mpTexture[y*mWidth+x]); return mColor;}; int GetG(int x, int y) {mColor = GETG(mpTexture[y*mWidth+x]); return mColor;}; int GetB(int x, int y) {mColor = GETB(mpTexture[y*mWidth+x]); return mColor;}; private: TextureColorManager(); //NOT USED int mWidth, mColor; DWORD *mpTexture; }; } #endif