How can you draw black lines on only the contours of a model?

I’ve been seeing cartoon drawn models and I wanted to know how they do it. I’m pretty new to OpenGL, so if someone could just tell me which OpenGL functions to use to draw in a cartoon fasion, I’d be very happy .

You want to do a search for Non-photorealistic Rendering (NPR) algorithms. David Salisan is one of the pioneers in NPR and has many papers on the subject.