spatial locations

How can I define a spatial location in Opengl?(in immediate mode).Another question is how can I interpret this spatial location topologically and turn into objects?Is there a function to do these?