added opengl3 sample, mix from @ocornut and @thelinked

Not sure about space / tab indentation.