aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2016-01-03 18:57:04 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2016-01-03 18:57:04 +0000
commita5ad8dfa9ad48f9945a11e3e00eee49730962321 (patch)
tree0d51861dd1973defb333d23533c44b08f3e62a9f
parent7d635777630569ca23f051ae8f5a4950aa6cca91 (diff)
downloadusdx-a5ad8dfa9ad48f9945a11e3e00eee49730962321.tar.gz
usdx-a5ad8dfa9ad48f9945a11e3e00eee49730962321.tar.xz
usdx-a5ad8dfa9ad48f9945a11e3e00eee49730962321.zip
new drawing of text
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3176 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--src/menu/UDrawTexture.pas16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/menu/UDrawTexture.pas b/src/menu/UDrawTexture.pas
index bc136f11..9afc37e4 100644
--- a/src/menu/UDrawTexture.pas
+++ b/src/menu/UDrawTexture.pas
@@ -124,15 +124,27 @@ begin
glTexCoord2f(TexW, 0); glVertex3f(x4, y4, z);
glEnd;
}
-
+{
glBegin(GL_QUADS);
glTexCoord2f(TexX1*TexW, TexY1*TexH); glVertex3f(x1, y1, z);
glTexCoord2f(TexX1*TexW, TexY2*TexH); glVertex3f(x2, y2, z);
glTexCoord2f(TexX2*TexW, TexY2*TexH); glVertex3f(x3, y3, z);
glTexCoord2f(TexX2*TexW, TexY1*TexH); glVertex3f(x4, y4, z);
glEnd;
+ }
+ glBegin(GL_QUADS);
+ glTexCoord2f(TexX1*TexW, TexY1*TexH);
+ glVertex3f(x1, y1 + (y2 - (LeftScale * (y2))), z);
+ glTexCoord2f(TexX1*TexW, TexY2*TexH);
+ glVertex3f(x2, y2 - (y2 - (LeftScale * (y2))), z);
+ glTexCoord2f(TexX2*TexW, TexY2*TexH);
+ glVertex3f(x3, y3 - (y2 - (RightScale * (y2))), z);
+ glTexCoord2f(TexX2*TexW, TexY1*TexH);
+ glVertex3f(x4, y4 + (y2 - (RightScale * (y2))), z);
+ glEnd;
+
end;
- glDisable(GL_DEPTH_TEST);
+ glDisable(GL_DEPTH_TEST);
glDisable(GL_TEXTURE_2D);
end;