even if you write your own engine you need to use some sort of API unless you use software rendering . . .