From: <MSo...@ya...> - 2006-01-26 22:19:55
|
Hi Braden > I think I do not understand how your "view arrays" work. They are an > array of viewer::object_id? How are they indexed? > > Don't you need an associative array (of whatever implementation) in > either case? It seems to me you either map node* to > viewer::object_id in > the viewer, or you map viewer* to viewer::object_id in the node. Those nodes in a scene that are creating references in the view get a unique ID that is counted up from 1. The IDs can be managed by the scene or browser and IDs should be recycled if a node is deleted, so that the IDs are usually dense and can be used as direct array index. What the array contains depends on the view, I would say. A GL view might store GL list indices. A different view might store something else. How do you like this concept? Best regards, Michael -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 267.14.23/242 - Release Date: 26.01.2006 ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |