object ID

I would like to name all object in my scene, but how should i name some object.
I think that I have to write this :
glInitNames();
glPushName(0);
glLoadName(ID);
glBegin(…);
.
.
.
glEnd();

but i’m not sure about it, and I don’t know any way how to check it.

Hi !

Yes that is correct if you need to for selection for example, but if you need it for something else, then it would be pretty useles.

It all depends on what you need to use it for.

Mikael

I need it for selection