Original Post
I have a program that gets a list of object files, reads in the objects, and then displays them. I am trying to create a display list for each object with the following code: front=glGenLists(numObjs); for(i=0; i> file; LoaderClass.LoadObj(file); ObjModel a = LoaderClass.ReturnObj(); obj.push_back(LoaderClass.ReturnObj()); objectData.r=0.2; objectData.g=0.4; objectData.b=0.6; objectData.isPicked=false; glNewList((front+i),GL_COMPILE); for(int j=0; j.r, objectData.g, objectData.b); if(mode==GL_SELECT){ glLoadName((GLuint)(i)); } glCallList(front+i); } When i do this nothing shows up. Am I going about creating the lists in the right way, or should I do it someway else?