refactor to define draw in terms of draw'

move mvp function and clear color inside Resources