Object Storage
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
I would go for the CObject* linked-list/array, but create one for each type.
( or a linked list instead of a array )
CObject* mesh[ constant ];CObject* camera[ constant ];....
( or a linked list instead of a array )
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement