maybe this would do ?

IDirect3DDevice9::clear()

but it may need a dll because I dont know if the scope operator :: works in LiteC
Also u may need to set "render_sky" to the action that sets the depth buffer to 1.0


I like good 'views' because they have no 'strings' attached..