started on opengl scope functionality