It seems that I can’t use automaticaly generated texture coords in vertex programs. Am I wrong?
You need to roll-your-own. What sort of texgen did you have in mind ?
For the begining I wanted to add texture to glutSolidCone(…);, I’ve seen the way to get cubemap coords, but I don’t know how to add tex2D (GL_OBJ_LIN) for ex.