Skip to main content
grammar and punctuation; removed blacklisted engine tag
Source Link
Gnemlock
  • 5.3k
  • 5
  • 30
  • 60

Resource management question. Resource containing In a resource manager, how do I handle a resource containing other resources?

I have a resource manager, handling asthe usual resource loading, unloading etc. With With resources such an images and meshes, meshthere is no problem. But However, what to do I do when I have a resource containing other resource (forresources? For example spriteFont, spriteFont contains reference to spritea sprite and lettersa letter description). 

Should that spritesprite be added to resource manager? Or, or should my spriteFont mustspriteFont be the only owner of that resource? Any thoughts on this. Have you faced with such problem? Thanks in advance.

Resource management question. Resource containing resource

I have resource manager handling as usual resource loading, unloading etc. With resources such an images, mesh no problem. But what to do when I have resource containing other resource (for example spriteFont contains reference to sprite and letters description). Should that sprite be added to resource manager? Or my spriteFont must be the only owner of that resource? Any thoughts on this. Have you faced with such problem? Thanks in advance.

In a resource manager, how do I handle a resource containing other resources?

I have a resource manager, handling the usual resource loading, unloading etc. With resources such an images and meshes, there is no problem. However, what do I do when I have a resource containing other resources? For example, spriteFont contains reference to a sprite and a letter description. 

Should that sprite be added to resource manager, or should my spriteFont be the only owner of that resource?

Tweeted twitter.com/#!/StackGameDev/status/248889530864783360
Source Link
Yevhen
  • 1.5k
  • 1
  • 14
  • 19

Resource management question. Resource containing resource

I have resource manager handling as usual resource loading, unloading etc. With resources such an images, mesh no problem. But what to do when I have resource containing other resource (for example spriteFont contains reference to sprite and letters description). Should that sprite be added to resource manager? Or my spriteFont must be the only owner of that resource? Any thoughts on this. Have you faced with such problem? Thanks in advance.