added OpenGL data structure conversion