small fix related to using ZImage::Flip with rotate

This commit is contained in:
James Turk 2002-12-02 05:46:37 +00:00
parent 8447c8d43a
commit 048dc4fb34

View File

@ -13,7 +13,7 @@
File: ZE_ZImage.cpp <br> File: ZE_ZImage.cpp <br>
Description: Implementation source file for core ZEngine Image or Texture Object. <br> Description: Implementation source file for core ZEngine Image or Texture Object. <br>
Author(s): James Turk, Gamer Tazar <br> Author(s): James Turk, Gamer Tazar <br>
$Id: ZE_ZImage.cpp,v 1.5 2002/12/02 05:18:52 cozman Exp $<br> $Id: ZE_ZImage.cpp,v 1.6 2002/12/02 05:46:37 cozman Exp $<br>
\file ZE_ZImage.cpp \file ZE_ZImage.cpp
\brief Source file for ZImage. \brief Source file for ZImage.
@ -210,9 +210,9 @@ void ZImage::DrawRotated(int x, int y, float angle)
glRotatef(angle,0,0,1.0f); glRotatef(angle,0,0,1.0f);
Bind(); Bind();
glBegin(GL_TRIANGLE_STRIP); glBegin(GL_TRIANGLE_STRIP);
glTexCoord2f(0.0f,0.0f); glVertex2f(-cX, -cY); glTexCoord2f(rTexMinX,rTexMinY); glVertex2f(-cX,-cY);
glTexCoord2f(rTexMaxX,0.0f); glVertex2f(-cX+rWidth, -cY); glTexCoord2f(rTexMaxX,rTexMinY); glVertex2f(-cX+rWidth,-cY);
glTexCoord2f(0.0f,rTexMaxY); glVertex2f(-cX, -cY+rHeight); glTexCoord2f(rTexMinX,rTexMaxY); glVertex2f(-cX,-cY+rHeight);
glTexCoord2f(rTexMaxX,rTexMaxY); glVertex2f(-cX+rWidth,-cY+rHeight); glTexCoord2f(rTexMaxX,rTexMaxY); glVertex2f(-cX+rWidth,-cY+rHeight);
glEnd(); glEnd();
glPopMatrix(); glPopMatrix();