[gameprogrammer] engine design, question

Im creating a simple engine for my game client. Im in the process of separating resource loading, scene rendering and map data in different classes.
I have a doubt, how should I deal with object storage (meshes, texture, etc)? I was thinking to let the resource manager keep a cache of objetcs, but then how to make those objects available to the scene manager for rendering without having to search in the cache?
A friend recommended me to keep the objects in the resource manager cache and pass a pointer to the scene manager. Is this the best solution?


--
Roger D. Vargas
http://dsgp.blogspot.com | Linux, programación, juegos


______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com



--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: