loading ppm texture

how do i load a ppm file as a texture?

check out DevIL. it’s an image loading library that supports many file formats.

jebus

I found this example code doing a Google search on “opengl ppm texture loading”:
http://www.cs.rit.edu/usr/local/pub/ncs/graphics/OpenGL/ExamplesLab4/Texture/maiden.c