Mercurial > hg > Members > kono > tree_dandy2
diff sgoex.c @ 25:6754fbb63ac7
64bit and sys.c removal
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 14 Dec 2010 10:45:02 +0900 |
parents | 972a7f233b23 |
children | 6a8cb917e0ad |
line wrap: on
line diff
--- a/sgoex.c Mon Dec 13 15:03:39 2010 +0900 +++ b/sgoex.c Tue Dec 14 10:45:02 2010 +0900 @@ -149,7 +149,7 @@ void PutSprite(int zorder, short x, short y, int number) { - glBindTexture(GL_TEXTURE_2D, (GLuint)sptable[number].texture); + glBindTexture(GL_TEXTURE_2D, (GLuint&)sptable[number].texture); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBegin(GL_QUADS); @@ -171,7 +171,7 @@ glEnable(GL_TEXTURE_2D); glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glBindTexture(GL_TEXTURE_2D, (GLuint)sptable[number].texture); + glBindTexture(GL_TEXTURE_2D, (GLuint&)sptable[number].texture); glTranslatef(x + m->w/2, y + m->h/2, 0.0); glRotatef(angle, 0.0, 0.0, 1.0); glScalef(scalex, scaley, 1.0);