In my game--- player can draw lines by touches moved..also changes colors
i want to copy all the pixel ..and draw it with color at different place..(like copy-paste functionality pixel base)
is that possible in cocos2d ?
I know its openGL stuff but i also have cocos2d sprites and all that in other scene...because i dont know at OpenGl so much..
I am using now ,in cocos2d draw function..to draw array
like this
`
CGPoint vertices[500]={,,,,,,};
glVertexPointer(2, GL_FLOAT, 0, vertices);
glEnableClientState(GL_VERTEX_ARRAY);
glDrawArrays(GL_POINTS, 0, arraylenth);
glDisableClientState(GL_VERTEX_ARRAY);
`
But how can i read the pixel ?
Thanks in Advance..