ContentManager extensions
ContentManager extensions
ContentManager.OpenStream
System.IO.Stream ContentManager.OpenStream(string filename)
OpenStream allows easy access to TitleContainer.OpenStream
so you can use the Game.Content
object to load compiled resources and included resources.
ContentManager.GetGraphicsDevice
GraphicsDevice ContentManager.GetGraphicsDevice()
GetGraphicsDevice returns the current GraphicsDevice
from the services.
ContentReader extensions
The ContentReader
extensions help when writing your own content pipeline readers.
ContentReader.GetGraphicsDevice
GraphicsDevice ContentManager.GetGraphicsDevice()
GetGraphicsDevice returns the current GraphicsDevice
to help when loading content for the current display.
ContentReader.GetRelativeAssetName
string ContentReader.GetRelativeAssetName(string relativeName)
GetRelativeAssetName helps when your content type loads a different type, and you want to know the name to give ContentManager.Load
.