PDA

View Full Version : object ID



jirkamelich
11-24-2002, 08:12 AM
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.

mikael_aronsson
11-24-2002, 10:29 PM
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

jirkamelich
11-25-2002, 07:14 AM
I need it for selection