Creating Draw method for OpenGL