TexturedElement vs TextElement Coordinate System Issues

Jan 23, 2011 at 8:18 AM
Edited Jan 23, 2011 at 3:38 PM

I was creating an XML-based menu system which built a menu with TextElements as a starting point for the viewable menu options. Once that was working, I wanted to take the time to replace all the TextElements with TexturedElement objects.

However, when utilizing the same code, the drawing of the original TextElement and the newly drawn TexturedElement were not drawn at the same locations, despite having identical position values. The texture itself is both small and cropped, so it is not an issue with invisible space in the image.

It seems the coordinate system for TextElement considers (0,0) to be in the top-left corner (with +X running from the left side of the monitor to the right, and +Y running from the bottom of the screen to the top)
--Indicating that the overall screen is in quadrant-4 of the Cartesian coordinate system with the origin at the top-left.

The TexturedElement, on the other hand, seems to consider (0,0) to be in the bottom-left corner of the monitor (with +X running from the left side of the monitor to the right, and +Y running from the bottom of the screen to the top)
--Indicating that the overall screen is in quadrant-1 of the Cartesian coordinate system

Can anybody else verify this issue/inconsistency?

 

Thanks!