added all the initalizations for drawing with openGL