2D framework based on D3D