Ported from XNA to Monogame