ios - How to clear out Color of pixel at a point in OpenGL ES 2.0? -


i working on opengles 2.0. when tap on screen getting point want remove color @ tapped point. means want remove whatever has.

glvertexattribpointer(kccvertexattrib_color, 4, gl_float, gl_false, sizeof(linevertex), &vertices[0].color); 

i have tried above line, fill area color provided, want remove color can see background, erase color @ given point.

to this, should create texture in gl_rgba format covers window. can edit alpha channel of pixels in texture @ touch coordinates , update texture glteximage2d().


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -