c++ - Opengl obj object loader with textures -
i using object loader load obj model exported blender. can load model none of textures loaded , don't know why. should loaded when render model in main class or need load textures rendering model? objloader.cpp /************************************************************ *loads obj file - limited vertices, faces, normals, texture maps *loads object structure defined in .h file ************************************************************/ #include <stdio.h> #include <iostream> #include <io.h> #include <stdlib.h> #include "glut.h" #include "objloader.h" using namespace std; void object_type::render() { glbegin(gl_triangles); // glbegin , glend delimit vertices define primitive (in our case triangles) (int j=0;j<polygons_qty;j++) { //----------------- first vertex ----------------- //normal coordinates of first vertex glnormal3f( normcoord[ polygon[j].n[0] - 1 ].i, normcoor...