Rectangle and RealRect are redundant

Minor issues with the Ogre API that can be trivial to fix
Post Reply
User avatar
Mikachu
Gnoll
Posts: 603
Joined: Thu Jul 28, 2005 4:11 pm
Location: Nice, France
x 35

Rectangle and RealRect are redundant

Post by Mikachu »

It seems that Ogre::Rectangle and Ogre::RealRect do the exact same thing, so why both exist?
Is it for legacy code?
Then a simple typedef on Ogre::Rectangle could be used..
OgreProcedural - Procedural Geometry for Ogre3D
User avatar
masterfalcon
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: Rectangle and RealRect are redundant

Post by masterfalcon »

It looks like Rectangle was added solely for the OverlayElement class. It can be safely removed. A handful of changes are necessary of course.
Post Reply