¡@

Home 

2014/10/15 ¤U¤È 10:09:41

iphone Programming Glossary: glvertex2f

How can I crop an Image with mask and combine it with another image (background) on iPhone? (OpenGL ES 1.1 is preferred)

http://stackoverflow.com/questions/5299452/how-can-i-crop-an-image-with-mask-and-combine-it-with-another-image-background

x 0 y 0 glBindTexture GL_TEXTURE_2D mask_texture glDisable GL_BLEND glBegin GL_QUADS glTexCoord2f texture_x texture_y glVertex2f x y glTexCoord2f texture_x 1.0 texture_y glVertex2f x 512.0 y glTexCoord2f texture_x 1.0 texture_y 1.0 glVertex2f x 512.0.. GL_BLEND glBegin GL_QUADS glTexCoord2f texture_x texture_y glVertex2f x y glTexCoord2f texture_x 1.0 texture_y glVertex2f x 512.0 y glTexCoord2f texture_x 1.0 texture_y 1.0 glVertex2f x 512.0 y 512.0 glTexCoord2f texture_x texture_y 1.0 glVertex2f.. glVertex2f x y glTexCoord2f texture_x 1.0 texture_y glVertex2f x 512.0 y glTexCoord2f texture_x 1.0 texture_y 1.0 glVertex2f x 512.0 y 512.0 glTexCoord2f texture_x texture_y 1.0 glVertex2f x y 512.0 glEnd glBindTexture GL_TEXTURE_2D color_texture..