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
Post a Comment