#include <OgreMeshManager.h>
Inheritance diagram for Ogre::MeshManager:
Public Methods | |
MeshManager () | |
void | _initialise (void) |
Initialises the manager, only to be called by OGRE internally. More... | |
Mesh * | load (const String &filename, int priority=1) |
Loads a mesh from a file, making it available for use. More... | |
Resource * | create (const String &name) |
Creates a Mesh resource. More... | |
Mesh * | createManual (const String &name) |
Creates a new Mesh specifically for manual definition rather than loading from an object file. More... | |
Mesh * | createPlane (const String &name, const Plane &plane, Real width, Real height, int xsegments=1, int ysegments=1, bool normals=true, int numTexCoordSets=1, Real uTile=1.0f, Real vTile=1.0f, const Vector3 &upVector=Vector3::UNIT_Y) |
Creates a basic plane, by default majoring on the x/y axes facing positive Z. More... | |
Mesh * | createCurvedPlane (const String &name, const Plane &plane, Real width, Real height, Real bow=0.5f, int xsegments=1, int ysegments=1, bool normals=false, int numTexCoordSets=1, Real xTile=1.0f, Real yTile=1.0f, const Vector3 &upVector=Vector3::UNIT_Y) |
Creates a curved plane, by default majoring on the x/y axes facing positive Z. More... | |
virtual void | setMemoryBudget (size_t bytes) |
Set a limit on the amount of memory this resource handler may use. More... | |
virtual void | load (Resource *res, int priority) |
Load a resource. More... | |
virtual void | unload (Resource *res) |
Unloads a Resource from the managed resources list, calling it's unload() method. More... | |
virtual void | unloadAndDestroyAll (void) |
Unloads all Resources from memory. More... | |
virtual Resource * | getByName (const String &name) |
Retrieves a pointer to a resource by name. More... | |
void | addSearchPath (const String &path) |
Adds a relative path to search for resources of this type. More... | |
void | addArchiveEx (const String &strName, const String &strDriverName) |
Adds an archive to the search path for this type of resource. More... | |
bool | _findResourceData (const String &filename, DataChunk &refChunk) |
Internal method, used for locating resource data in the file system / archives. More... | |
Static Public Methods | |
MeshManager & | getSingleton (void) |
Override standard Singleton retrieval. More... | |
void | addCommonSearchPath (const String &path) |
Adds a relative search path for resources of ALL types. More... | |
void | addCommonArchiveEx (const String &strName, const String &strDriverName) |
Adds an archive to the search path for all resources. More... | |
std::set< String > | _getAllCommonNamesLike (const String &startPath, const String &extension) |
Returns a collection of files with the given extension in the common resource paths. More... | |
bool | _findCommonResourceData (const String &filename, DataChunk &refChunk) |
Internal method, used for locating common resource data in the file system / archives. More... | |
MeshManager * | getSingletonPtr (void) |
Protected Types | |
typedef HashMap< String, ArchiveEx *, _StringHash > | FileMap |
Protected Methods | |
void | tesselate2DMesh (SubMesh *pSub, int meshWidth, int meshHeight, bool doubleSided=false) |
Utility method for tesselating 2D meshes. More... | |
void | checkUsage (void) |
Checks memory usage and pages out if required. More... | |
Protected Attributes | |
FileMap | mArchiveFiles |
ResourceMap | mResources |
size_t | mMemoryBudget |
size_t | mMemoryUsage |
std::vector< ArchiveEx * > | mVFS |
Collection of searchable ArchiveEx classes (virtual file system) for this resource type. More... | |
Static Protected Attributes | |
FileMap | mCommonArchiveFiles |
std::vector< ArchiveEx * > | mCommonVFS |
Collection of searchable ArchiveEx classes (virtual file system) for all resource types. More... | |
MeshManager * | ms_Singleton = 0 |
|
|
|
|
|
Internal method, used for locating common resource data in the file system / archives.
|
|
Internal method, used for locating resource data in the file system / archives.
|
|
Returns a collection of files with the given extension in the common resource paths.
|
|
Initialises the manager, only to be called by OGRE internally.
|
|
Adds an archive to the search path for this type of resource.
|
|
Adds an archive to the search path for all resources.
|
|
Adds a relative search path for resources of ALL types.
This method has the same effect as ResourceManager::addSearchPath, except that the path added applies to ALL resources, not just the one managed by the subclass in question. |
|
Adds a relative path to search for resources of this type.
|
|
Checks memory usage and pages out if required.
|
|
Creates a Mesh resource.
Implements Ogre::ResourceManager. |
|
Creates a curved plane, by default majoring on the x/y axes facing positive Z.
|
|
Creates a new Mesh specifically for manual definition rather than loading from an object file.
|
|
Creates a basic plane, by default majoring on the x/y axes facing positive Z.
|
|
Retrieves a pointer to a resource by name.
|
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< MeshManager >. |
|
|
|
Load a resource. Resources will be subclasses. Reimplemented in Ogre::TextureManager. |
|
Loads a mesh from a file, making it available for use.
|
|
Set a limit on the amount of memory this resource handler may use.
|
|
Utility method for tesselating 2D meshes.
|
|
Unloads a Resource from the managed resources list, calling it's unload() method.
|
|
Unloads all Resources from memory.
Reimplemented in Ogre::D3D8TextureManager. |
|
|
|
|
|
Collection of searchable ArchiveEx classes (virtual file system) for all resource types.
|
|
|
|
|
|
|
|
|
|
Collection of searchable ArchiveEx classes (virtual file system) for this resource type.
|
Copyright © 2002 by The OGRE Team