chihiro: added support for zbuffer and stencil plus render target methods [Samuele Zannoli]