source: GTP/trunk/Lib/Illum/IBRBillboardCloudTrees/OGRE/include/IMG/IMGBox2d.h @ 731

Revision 731, 714 bytes checked in by igarcia, 18 years ago (diff)
RevLine 
[700]1#ifndef _IMGBOX2D_H
2#define _IMGBOX2D_H
3
[721]4#include <IMGBBox.h>
[700]5
6namespace IMG {
7
8//* this class represents a 2d bound box for a texture
[731]9class _IMGExport Box2d
[721]10{
11        public:
12                Box2d();
[700]13
[721]14                ~Box2d();
[700]15
[721]16                // GametoolsError -- Isma 17/08/2005
17                Box2d & Box2d::operator =(const Box2d & p)
18                {
19                        mMinimum = p.mMinimum;
20                        mMaximum = p.mMaximum;
21                        return (*this);
22                }
[700]23
[731]24                Ogre::Vector2 getMinimum();
[700]25
[731]26                Ogre::Vector2 getMaximum();
[700]27
[731]28                void setBoundBox(float x, float y, float X, float Y);
[700]29
[731]30                void addBoundingVector3(float x, float y);
[700]31
[731]32                void print();
[700]33
[731]34                Ogre::Vector2 getCorner(int corner) const;
[700]35
[731]36                bool in(int w, int h);
[700]37
[731]38                bool fitPerfect(int w, int h);
[700]39
[721]40        protected:
[700]41                Ogre::Vector2 mMinimum, mMaximum;
42};
43
44}
45#endif
Note: See TracBrowser for help on using the repository browser.