[CELayoutEditorII] Vertically mirrored background image

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

IrmatDen
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Sat Feb 26, 2011 08:04

[CELayoutEditorII] Vertically mirrored background image

Postby IrmatDen » Mon Mar 07, 2011 15:40

Hi,

Tested only on Windows 7; the background image is simply mirrored vertically, I only needed to invert the V texcoords to make the up up again, and the down, down again :)

Relevant Hg shelve:

Code: Select all

diff --git a/layouteditor/qtwidgets.py b/layouteditor/qtwidgets.py
--- a/layouteditor/qtwidgets.py
+++ b/layouteditor/qtwidgets.py
@@ -532,4 +532,6 @@
 
         glBegin(GL_QUADS)
         glVertex2f(x1, y1)
+        glTexCoord2f(1, 1)
+        glVertex2f(x2, y1)
         glTexCoord2f(1, 0)
@@ -535,4 +537,2 @@
         glTexCoord2f(1, 0)
-        glVertex2f(x2, y1)
-        glTexCoord2f(1, 1)
         glVertex2f(x2, y2)
@@ -538,2 +538,4 @@
         glVertex2f(x2, y2)
+        glTexCoord2f(0, 0)
+        glVertex2f(x1, y2)
         glTexCoord2f(0, 1)
@@ -539,6 +541,4 @@
         glTexCoord2f(0, 1)
-        glVertex2f(x1, y2)
-        glTexCoord2f(0, 0)
         glEnd()
 
         glDisable(GL_TEXTURE_2D)

Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 15 guests