Converted sample to use opengl

d1f246f