![]() ![]() We take advantage of that to cause the drawing of each cube to occur at a different position by modifying the modelview matrix using glTranslate. Critically, OpenGL state is not saved or restored before we execute display lists. You can then trivially execute the display list repeatedly. ![]() ![]() A display list is a series of OpenGL calls that is stored until you instruct OpenGL to execute it. It just so turns out that OpenGL possesses such a functionality: display lists. Essentially, if you have a routine that draws a single cube, you should be able to call that routine over and over again to draw all your cubes. ![]() You should be able to use this fact to cut down on data and code by using repetition. All of your cubes are structurally identical.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |