use gfxlib to manage dx device
changed rttexture to use Gfx classes