We focus on investigating a generic two-dimensional sine-Gordon equation in nonlinear optics. Based on a viable transformation, the bifurcation analysis of the equation is carried out in this paper. The phase portraits are given and different kinds of traveling wave solutions are obtained. The analytical results are also numerically simulated.