How to get fire effect in OpenGL?

The effect I want is like gun shooting.
Anyone can give me some hints about this.

Thx

What kind of gun?