Jump to content

XNA ResourceContentManager

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Drakken255

Drakken255

    Newbie

  • Members
  • Pip
  • 4 posts
When creating a ResourceContentManager, what do I pass for the first parameter? Can it be null? What is it for, anyway?

#2
AIGuy

AIGuy

    Learning Programmer

  • Members
  • PipPipPip
  • 64 posts
A1. An object that implements the IServiceProvider interface
A2. To be honest, I don't know, but probably not.
A3. I don't know. I looked at it and it only member was this method signature: "object GetService(Type serviceType);".

Sorry. I know this wasn't very helpful. Just out of curiosity, why do you need to make another one?

#3
Bull3t09

Bull3t09

    Newbie

  • Members
  • Pip
  • 8 posts
The ResourceContentManager in XNA (atleast as far as 3.1 is concerned) is a COMPLICATED object. It handles all conversions from standard file formats that we use (jpg, png, mpg) and converts it to to the file formats that XNA understands and uses. I'm not sure your reasons to create another instance than the one that is automatically provided when you create a new project, but you should be able to find the information you need here:

ResourceContentManager Class

That comes from Microsoft so if you don't find it there, and the developers that created XNA aren't on this forum, then I'm not sure where to look. Hope that helps though.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users