Collection of computer graphics related software packages available on the net. Most resources listed come with source code.
If you have a specific problem that you want to implement, like point in polygon test, this is the place you could find the C/C++ Code. The series of books Graphics Gems and this online repository contain short to medium length pieces of code which perform a wide variety of tasks.