projects
/
IvanGame.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbb3a50
)
fixed scale
author
Ivan Hernanez
<iturtleman128@gmail.com>
Mon, 28 May 2012 04:58:08 +0000
(23:58 -0500)
committer
Ivan Hernanez
<iturtleman128@gmail.com>
Mon, 28 May 2012 04:58:08 +0000
(23:58 -0500)
Sprite.cpp
patch
|
blob
|
history
diff --git
a/Sprite.cpp
b/Sprite.cpp
index
3d15232
..
aad2f4e
100644
(file)
--- a/
Sprite.cpp
+++ b/
Sprite.cpp
@@
-49,7
+49,7
@@
void Sprite::draw()
glTranslated(mPos.x,mPos.y,0);//move to position
glTranslated(frame->animationPeg.x,frame->animationPeg.y,0);//move back to where it was
glRotatef(mAngle,0.0f,0.0f,1.0f);//rotate shape
- glScaled(mScale);
+ glScaled(mScale
, mScale, mScale
);
glTranslated(-frame->animationPeg.x,-frame->animationPeg.y,0);//place animation peg on origin
glBindTexture(GL_TEXTURE_2D, frame->image);
glBegin( GL_QUADS );