View Full Version : display lists and evaluators
10-09-2005, 07:50 AM
does someone know whether there are any problems in using glEvalCoord1* (or glEvalCoord2*) if I call them inside a display list? It seems that it does not work.
If I call glEvalCoord* after calling of glCallList() (i.e. outside of display list) it does work and the curves or surfaces are really drawn. Is there some restriction in using glEvalCoord* inside of display lists?
Thanks in advance!
10-09-2005, 11:29 AM
Evaluators generate coordinates that can be stored inside a display list, but you cannot actually execute an evaulator inside a display list, the display is a static list of OpenGL "commands" that will be executed to render something.
10-09-2005, 12:49 PM
So what is the conclusion? The calling of glEvalCoord* is completely useless inside of display lists? How can I access the coordinates generated by evaluators in order to store them (the coordinates) in a display list?
10-09-2005, 09:53 PM
You can creat a display list and call the evaulator to store the generated information in the display list, then the evaluator is no longer needed as you can just use the display list to render the result.
10-09-2005, 11:12 PM
Thank you for your suggestions!
But I still don't understand how the coordinates should be stored. An example would be the best explanation. Suppose I have the following code:
glEndList();... and then somewhere
glCallList(iList);Do you think this will work? Of course first of all I will define the control points, call glMap1f and glEnable.
10-12-2005, 03:20 AM
Yes it will work, the evaluator will do it'sthing and call the correct openGL function for you, and the values will be stored in the display list.
So when you call the display list it will be "played back" as if you would have executed the avaluator again.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.