#include <async_file_manager_3d.h>
Nevrax France
Definition at line 49 of file async_file_manager_3d.h.
Public Member Functions | |
| bool | cancelLoadMesh (const std::string &sMeshName) |
| bool | cancelLoadTexture (CTextureFile *textFile) |
| void | cancelSignal (bool *pSgn) |
| void | loadFile (const std::string &fileName, uint8 **pPtr) |
| void | loadFiles (const std::vector< std::string > &vFileNames, const std::vector< uint8 ** > &vPtrs) |
| void | loadIG (const std::string &igName, CInstanceGroup **ppIG) |
| void | loadIGUser (const std::string &igName, UInstanceGroup **ppIG) |
| void | loadMesh (const std::string &sMeshName, IShape **ppShp, IDriver *pDriver, const NLMISC::CVector &position, uint textureSlot) |
| void | loadTexture (CTextureFile *textureFile, bool *pSgn, const NLMISC::CVector &position) |
| void | signal (bool *pSgn) |
Static Public Member Functions | |
| CAsyncFileManager3D & | getInstance () |
| void | terminate () |
Private Member Functions | |
| CAsyncFileManager3D () | |
Static Private Attributes | |
| CAsyncFileManager3D * | _Singleton = NULL |
Friends | |
| class | CLoadMeshCancel |
| class | CLoadTextureCancel |
|
|
Definition at line 53 of file async_file_manager_3d.cpp. Referenced by getInstance().
00054 {
00055 }
|
|
|
Definition at line 120 of file async_file_manager_3d.cpp. References CLoadMeshCancel.
00121 {
00122 return CAsyncFileManager::getInstance().cancelLoadTask(CLoadMeshCancel(sMeshName));
00123 }
|
|
|
Definition at line 178 of file async_file_manager_3d.cpp. References CLoadTextureCancel.
00179 {
00180 return CAsyncFileManager::getInstance().cancelLoadTask(CLoadTextureCancel(textFile));
00181 }
|
|
|
Definition at line 207 of file async_file_manager_3d.cpp.
00208 {
00209 CAsyncFileManager::getInstance().cancelSignal(pSgn);
00210 }
|
|
|
Definition at line 59 of file async_file_manager_3d.cpp. References _Singleton, and CAsyncFileManager3D(). Referenced by terminate().
00060 {
00061 if (_Singleton == NULL)
00062 {
00063 _Singleton = new CAsyncFileManager3D();
00064 }
00065 return *_Singleton;
00066 }
|
|
||||||||||||
|
Definition at line 186 of file async_file_manager_3d.cpp. References uint8.
00187 {
00188 CAsyncFileManager::getInstance().loadFile (sFileName, ppFile);
00189 }
|
|
||||||||||||
|
Definition at line 193 of file async_file_manager_3d.cpp.
00194 {
00195 CAsyncFileManager::getInstance().loadFiles (vFileNames, vPtrs);
00196 }
|
|
||||||||||||
|
Definition at line 127 of file async_file_manager_3d.cpp.
00128 {
00129 CAsyncFileManager::getInstance().addLoadTask(new CIGLoad(IGName, ppIG));
00130 }
|
|
||||||||||||
|
Definition at line 134 of file async_file_manager_3d.cpp.
00135 {
00136 CAsyncFileManager::getInstance().addLoadTask (new CIGLoadUser(IGName, ppIG));
00137 }
|
|
||||||||||||||||||||||||
|
Definition at line 81 of file async_file_manager_3d.cpp. References nlwarning, and uint.
00082 {
00083 if (meshName.empty())
00084 nlwarning ("Can't load an empty filename");
00085 CAsyncFileManager::getInstance().addLoadTask(new CMeshLoad(meshName, ppShp, pDriver, position, textureSlot));
00086 }
|
|
||||||||||||||||
|
Definition at line 140 of file async_file_manager_3d.cpp. References nlassert.
00141 {
00142 nlassert(textureFile && pSgn);
00143 CAsyncFileManager::getInstance().addLoadTask(new CTextureLoad(textureFile, pSgn, position));
00144 }
|
|
|
Definition at line 200 of file async_file_manager_3d.cpp.
00201 {
00202 CAsyncFileManager::getInstance().signal(pSgn);
00203 }
|
|
|
Definition at line 70 of file async_file_manager_3d.cpp. References _Singleton, and getInstance().
00071 {
00072 if (_Singleton != NULL)
00073 {
00074 delete &getInstance();
00075 _Singleton = NULL;
00076 }
00077 }
|
|
|
Definition at line 83 of file async_file_manager_3d.h. Referenced by cancelLoadMesh(). |
|
|
Definition at line 84 of file async_file_manager_3d.h. Referenced by cancelLoadTexture(). |
|
|
Definition at line 49 of file async_file_manager_3d.cpp. Referenced by getInstance(), and terminate(). |
1.3.6