// ---------------------------------------------------------------- // From Game Programming in C++ by Sanjay Madhav // Copyright (C) 2017 Sanjay Madhav. All rights reserved. // // Released under the BSD License // See LICENSE in root directory for full details. // ---------------------------------------------------------------- #include class Texture { public: Texture(); ~Texture(); bool Load(const std::string& fileName); void Unload(); void SetActive(); int GetWidth() const { return mWidth; } int GetHeight() const { return mHeight; } private: unsigned int mTextureID; int mWidth; int mHeight; };