I convert one of the .obj model to .h file using obj2opengl.pl
Should it have a .jpg that contain the color of the object? where or how should I get it? is it link to the .mtl file?
I convert one of the .obj model to .h file using obj2opengl.pl
Should it have a .jpg that contain the color of the object? where or how should I get it? is it link to the .mtl file?
I convert one of the .obj model to .h file using obj2opengl.pl
Please stop doing that. Use a proper model file loader to load the data.
Should it have a .jpg that contain the color of the object? where or how should I get it? is it link to the .mtl file?
The .mtl file does indeed contain the filename of the texture to be loaded for the model. This is where a file loader comes in really handy. Loading images is best delegated to a image loading library, like DevIL, imlib2 or similar.