Use the common shader setup function
Put the functions where they belong
Make the stencil buffer be created when drawing

This is done because the surface used for the setup might not
be the same as the surface used for drawing. If such thing
happens the size of the surfaces might be different and the
check status for the fbo will be invalid
Add support for clipping
Add support for x,y translation and clipping
Be sure to only render a valid area

The opengl drawing uses the area in surface coordinates and
the x,y translation to transform from surface to renderer
space.
Start adding future code of the compound renderer