You don't need quaternions here: Use ang_to_matrix for getting a D3DX transformation matrix.

For converting an angle to a quaternion, you can either use a DirectX function, or use vec_cross to get the rotation axis and the angle about that axis. At least that's the theory, I haven't done it yet.