Ok, i figured it out by myself. I'm drawing a Rectangle above my already drawn stuff with an adequate blendmode. It looks like this:
PHP Code:
static GLfloat* vertexBufferShape = NULL;
if(vertexBufferShape == NULL) vertexBufferShape = malloc(4 * 2 * sizeof(GLfloat));
vertexBufferShape[0] = 0.0;
vertexBufferShape[1] = 1024.0;
vertexBufferShape[2] = 0.0;
vertexBufferShape[3] = 0.0;
vertexBufferShape[4] = 768.0;
vertexBufferShape[5] = 1024.0;
vertexBufferShape[6] = 768.0;
vertexBufferShape[7] = 0.0;
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glColor4f(0.0, 0.0, 0.0, 0.01);
glVertexPointer(2, GL_FLOAT, 0, vertexBufferShape);
glDrawArrays(GL_TRIANGLE_STRIP, 0, 8);
I hope this is a good solution. If you pro guys know a better way to achieve this effect, please let me know.
For all others I hope this might help people looking for a similar solution.
Thanks,
Raphael