Skip to main content
gamedev.net
🔒 Locked

[java] Objects of Objects

Started by Lubb 2 replies 350+ views
Original Post
Lubb
Lubb
So I''m imagining I''ll write a raytracer/caster/3-D drafting program in Java, because if I used C++ or VB it wouldn''t be very difficult. SO over time, at a casual pace, I am figuring the layout of it all. I want to use a group as the entire scene to be rendered, and I want to be able to have solid-models as well as (sub) groups in groups. .... In C++ or VB I''d have just used a variable list to hold objects with next and last "pointers" for each. This would seem to be possible in JAva of course, but I am wondering if there is some specific way in Java to do this? I can search Google, but don''t know the term to look for...? ~
RPD=Role-Playing-Dialogue. It's not a game,it never was. Deal with it.
Viro
Viro
Take a look at the Java Collection class. It provides containers like Maps, Lists, and iterators. However, it isn''t as powerful as the STL.
"Linux is not about free software, it is about community," -- Steve Balmer, Microsoft Chief Executive.
HenryApe
HenryApe
Java actually has something a lot more powerful than STL when it comes to handling hierarchical object structures for 3D graphics (scenegraphs). It is called Java3D.

I do not understand why you would use a linked list in C++ though when it seems like you need a tree structure (since you mention groups and subgroups).

Topic Locked

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

Sign in to reply to this topic.