I know this is kind of opengl question, but It also has to do with c++.
Hope you guys understand this.
Okay I need to be able to make every triangle running through this loop selectable by the mouse. How would I do this??
I know how to use glLoadName and the selection and feedback system.
Please some hints or pointers
THANKS!!
for (int i= 0; i<tris.size();i++)
{
glVertex3f(verts[tris[i].ix[2]].x,verts[tris[i].ix[2]].y,verts[tris[i].ix[2]].z);
glVertex3f(2.0f,0.0f,0.0f);
glVertex3f(5.0f,0.0f,0.0f);
};
glEnd();