There is no way, as far as I know, to have an application cover the dock. Therefore, you have the dock hide, and then your application can be full screen. This method is better, anyway, because you can still quickly get to the dock when you need it, versus it being covered by a running application.