Object Storage

Started by
0 comments, last by LowRad 23 years, 10 months ago
Hi All, I''ve have a base clase named CObject, for where i can derive each object Classes like (Camera, Mesh, Light, ...) I wonder what is the best way to store them in my Engine3D class. Did i''m better storing all my objects, in a LikedList for CObject type. Or do a LikedList for each derived type of object, and simply store them an Array of each Type. Did someone have an Idea... Thanks all, LowRad
Advertisement
I would go for the CObject* linked-list/array, but create one for each type.

        CObject* mesh[ constant ];CObject* camera[ constant ];....    


( or a linked list instead of a array )

Ries

This topic is closed to new replies.

Advertisement