creates an BGL_Object