Skip to main content
gamedev.net
🔒 Locked

Changing values in display list

Started by ncld Oct 4, 2002 at 12:44 PM 3 replies 350+ views
Original Post
ncld
ncld
hi, I have the following problem: Imagine some objects in a room, these objects were generated at loading like cubes and own defined objects and saved by the display list. If the user clicks one of the objects, he sould be able dragging it trough the room. Is it possible chaning values in the display list? thx
Fruny
Fruny
No, you can''t. Display lists are compiled once.
Though, since a display list can call another,
you can put the thing that must be changed in a
second display list, and modify that list, leaving
the main one unchanged.

However, if the display lists only draws individual
objects, there is nothing preventing you from doing
various transforms before calling the list that draws
the object. That way, you can move the object without
having to modify the list itself. (Note: you don''t need
to change the coordinates of object vertices EVER, you
use tranlation/rotation commands for that.)

Documents [ GDNet | MSDN | STL | OpenGL | Formats | RTFM | Asking Smart Questions ]
C++ Stuff [ MinGW | Loki | SDL | Boost. | STLport | FLTK | ACCU Recommended Books ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
ncld
ncld
Yeah I got it )
Thanks!
ncld
ncld
i did so! thanx

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.