XIL to OpenGL

Hi has anyone worked on both XIL and OpenGL, If yes than can some one help me with it… I wanted to convert one of the examples from XIL(downloaded from sun.com site) to OpenGl.