Properly upgrading CEGUI (Point to UVector2)

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
tgraupmann
Quite a regular
Quite a regular
Posts: 78
Joined: Thu Aug 18, 2005 00:47
Contact:

Properly upgrading CEGUI (Point to UVector2)

Postby tgraupmann » Tue Jun 05, 2007 04:28

Is this a correct conversion:

m_Window->setPosition(CEGUI::Point(_x, _y));


to

m_Window->setPosition(CEGUI::UVector2(CEGUI::UDim(_x,0), CEGUI::UDim(_y,0)));


I just want to make sure before I upgrade everything...

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Tue Jun 05, 2007 07:07

Yes it is, assuming that _x and _y are relative positions.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 28 guests