When creating a ResourceContentManager, what do I pass for the first parameter? Can it be null? What is it for, anyway?
2 replies to this topic
#1
Posted 10 November 2010 - 01:23 PM
|
|
|
#2
Posted 10 November 2010 - 04:55 PM
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?
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
Posted 11 November 2010 - 12:12 PM
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.
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


Sign In
Create Account

Back to top









