got opengl to disply the triangle finally