opengl triangle rendering in 3D