}
When I use glCallList(INFO_LIST),the screen is blank! But When I delete the code of creating the RULER_LIST,the other part of INFO_LIST is visible. I don’t know why?
Please help me. Thanks!
glNewList(INFO_LIST,GL_COMPILE);
CreateInfoList();
glCallList(RULER_LIST);
glEndList();
}
When I use glCallList(INFO_LIST),the screen is blank! But When I delete the code of creating the RULER_LIST,the other part of INFO_LIST is visible. I don’t know why?
Please help me. Thanks!
[This message has been edited by Tron (edited 11-21-2001).]
[This message has been edited by Tron (edited 11-22-2001).]
You probbaly change some states in RULER_LIST which are not restored, and in turn affects INFO_LIST in a negative way. An example can be translations. You translate RULER_LIST, but don’t restore this translation before ending the list. This means that you have unwanted translation in INFO_LIST which causes the object to appear somewhere else (outside your window perhaps).