ContentManager contains functionality to locate assets, load them, and manage their lifespans. The manager
also serves as a means to cache objects to ensure they only are loaded once.
Declaration Syntax
C# |
public class ContentManager : IDisposable
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
ContentManager()()()() |
Creates a new content manager with a file resource locator set to the title's root path.
|
|
ContentManager(IResourceLocator) |
Creates a new content manager with the specified resource locator.
|
|
ClearToDefaultLoaders()()()() |
Clears all registered loaders from the manager and sets the default engine content loaders.
|
|
Dispose()()()() |
Dispose the content manager.
|
|
Dispose(Boolean) |
Releases unmanaged and - optionally - managed resources
|
|
Equals(Object) |
(Inherited from Object.) |
|
Finalize()()()() |
Contentmanager destructor
(Overrides Object.Finalize()()()().) |
|
GetHashCode()()()() |
Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetLoader<(Of <<'(T>)>>)(String) |
Gets the loader registered with the manager with the specified extension and target type.
|
|
GetLoader(String, Type) |
Gets the loader registered with the manager with the specified extension and target type.
|
|
GetType()()()() |
Gets the Type of the current instance. (Inherited from Object.) |
|
IsDisposed |
Gets if the manager has been disposed.
|
|
Load<(Of <<'(T>)>>)(String) |
Loads the asset. If UseDefaultContent is set to true, and if the asset cannot be found,
an attempt to load it from the default content manager will be made.
|
|
Load<(Of <<'(T>)>>)(String, LoaderParameters) |
Loads the asset. If UseDefaultContent is set to true, and if the asset cannot be found,
an attempt to load it from the default content manager will be made.
|
|
Load<(Of <<'(T>)>>)(String, LoaderParameters, IResourceLocator) |
Loads the asset using an overloaded resource locator. If UseDefaultContent is set to true, and if the asset cannot be found,
an attempt to load it from the default content manager will be made.
|
|
LoadRelativeTo<(Of <<'(T>)>>)(String, IResource) |
Loads the asset relative to another asset source. If UseDefaultContent is set to true, and if the asset cannot be found,
an attempt to load it from the default content manager will be made.
|
|
LoadRelativeTo<(Of <<'(T>)>>)(String, IResource, LoaderParameters) |
Loads the asset relative to another asset source. If UseDefaultContent is set to true, and if the asset cannot be found,
an attempt to load it from the default content manager will be made.
|
|
MemberwiseClone()()()() |
Creates a shallow copy of the current Object. (Inherited from Object.) |
|
OpenStream(String) |
Locates the specified asset and opens a stream to read it. If UseDefaultContent is set to true and
the resource cannot be found, an attempt to locate it from default content will be made.
|
|
OpenStream(String, IResourceLocator) |
Locates the specified asset and opens a stream to read it using the resource locator
override. If UseDefaultContent is set to true and the resource cannot be found, an
attempt to locate it from default content will be made.
|
|
RegisterLoader(ResourceLoader) |
Register a loader with the content manager.
|
|
RemoveLoader<(Of <<'(T>)>>)(String) |
Removes a loader with the matching extension and target type from the manager.
|
|
RemoveLoader(String, Type) |
Removes a loader with the matching extension and target type from the manager.
|
|
ToString()()()() |
(Inherited from Object.) |
|
Unload()()()() |
Unloads all content cached by the manager. Objects that implement IDisposable
will be disposed.
|
|
UseDefaultContent |
Gets or sets if the manager should search the RenderSystemProvider's default content
as a last resort.
|
Inheritance Hierarchy
Object | |
ContentManager |
Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)