#ifndef _IMGBOX2D_H #define _IMGBOX2D_H #include namespace IMG { //* this class represents a 2d bound box for a texture class Box2d { public: Box2d(); ~Box2d(); // GametoolsError -- Isma 17/08/2005 Box2d & Box2d::operator =(const Box2d & p) { mMinimum = p.mMinimum; mMaximum = p.mMaximum; return (*this); } Ogre::Vector2 GetMinimum(); Ogre::Vector2 GetMaximum(); void SetBoundBox(float x, float y, float X, float Y); void AddBoundingVector3(float x, float y); void Print(); Ogre::Vector2 GetCorner(int corner) const; bool In(int w, int h); bool FitPerfect(int w, int h); protected: Ogre::Vector2 mMinimum, mMaximum; }; } #endif