added opengl3 sample, mix from @ocornut and @thelinked