I want to do a texture mapping to a PPM file in C++. Is there some way I can load the PPM file. Thanks.
PPM is a trivial image file format to read; it's well documented here. A few lines of C++ are all you need: example.