Add SGLView class.
Add initWindow and initGL function.