¡@

Home 

2014/10/15 ¤U¤È 10:15:58

iphone Programming Glossary: window_size

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

in the top row. static GLuint color_texture static GLuint mask_texture static GLuint background_texture static float window_size 2 void renderMask float texture_x 0 texture_y 0 float x 0 y 0 glBindTexture GL_TEXTURE_2D mask_texture glDisable GL_BLEND.. texture_x texture_y 1.0 glVertex2f x y size glEnd void init GLdouble bounds 4 glGetDoublev GL_VIEWPORT bounds window_size 0 bounds 2 window_size 1 bounds 3 glClearColor 0.0 0.0 0.0 1.0 glShadeModel GL_SMOOTH Load our textures... color_texture.. 1.0 glVertex2f x y size glEnd void init GLdouble bounds 4 glGetDoublev GL_VIEWPORT bounds window_size 0 bounds 2 window_size 1 bounds 3 glClearColor 0.0 0.0 0.0 1.0 glShadeModel GL_SMOOTH Load our textures... color_texture NSImage imageNamed @ colors..