bulk untested code. opengl and geometry collection