NL3D::CAsyncFileManager3D::CTextureLoad Class Reference

Inheritance diagram for NL3D::CAsyncFileManager3D::CTextureLoad:

NLMISC::IRunnablePos NLMISC::IRunnable

Public Member Functions

 CTextureLoad (CTextureFile *textureFile, bool *psgn, const CVector &position)
void getName (std::string &result) const
void run ()

Data Fields

NLMISC::CVector Position
bool * Signal
CTextureFileTextureFile

Constructor & Destructor Documentation

NL3D::CAsyncFileManager3D::CTextureLoad::CTextureLoad CTextureFile textureFile,
bool *  psgn,
const CVector position
[inline]
 

Definition at line 132 of file async_file_manager_3d.h.

References Signal, and TextureFile.

00133                         : TextureFile(textureFile), Signal(psgn)
00134                 {
00135                         Position = position;
00136                 }


Member Function Documentation

void NL3D::CAsyncFileManager3D::CTextureLoad::getName std::string &  result  )  const [virtual]
 

Reimplemented from NLMISC::IRunnable.

Definition at line 472 of file async_file_manager_3d.cpp.

References NL3D::CTextureFile::getFileName(), and TextureFile.

00473 {
00474         if (TextureFile)
00475                 result = "LoadTexture(" + TextureFile->getFileName() + ")";
00476         else
00477                 result = "LoadTexture(NULL)";
00478 }

void NL3D::CAsyncFileManager3D::CTextureLoad::run  )  [virtual]
 

Implements NLMISC::IRunnable.

Definition at line 461 of file async_file_manager_3d.cpp.

References NL3D::ITexture::generate(), Signal, and TextureFile.

00462 {
00463         // Load the texture.
00464         TextureFile->generate(true);
00465         // Ok
00466         *Signal= true;
00467 
00468         delete this;
00469 }


Field Documentation

NLMISC::CVector NLMISC::IRunnablePos::Position [inherited]
 

Definition at line 46 of file task_manager.h.

bool* NL3D::CAsyncFileManager3D::CTextureLoad::Signal
 

Definition at line 130 of file async_file_manager_3d.h.

Referenced by CTextureLoad(), and run().

CTextureFile* NL3D::CAsyncFileManager3D::CTextureLoad::TextureFile
 

Definition at line 129 of file async_file_manager_3d.h.

Referenced by NL3D::CLoadTextureCancel::callback(), CTextureLoad(), getName(), and run().


The documentation for this class was generated from the following files:
Generated on Tue Mar 16 06:44:31 2004 for NeL by doxygen 1.3.6