# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CTextureFile Class Reference

CTextureFile. More...

#include <texture_file.h>

Inheritance diagram for NL3D::CTextureFile

Inheritance graph
[legend]
Collaboration diagram for NL3D::CTextureFile:

Collaboration graph
[legend]
List of all members.

Public Methods

 CTextureFile ()
 Default constructor. More...

 CTextureFile (std::string s)
 constructor. More...

void setFileName (std::string s)
 Set the name of the file containing the texture. More...

std::string getFileName () const
 get the name of the file containing the texture. More...

virtual bool supportSharing () const
 sharing system. More...

virtual std::string getShareName () const
 Return the Unique ident/name of the texture, used for Driver sharing caps. More...

void doGenerate ()
 Generate the texture, looking in CPath if necessary. More...

virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 Save the texture file name. More...

 NLMISC_DECLARE_CLASS (CTextureFile)

Private Attributes

std::string _FileName

Detailed Description

CTextureFile.

Author(s):
Stephane Coutelas , Nevrax France
Date:
2000

Definition at line 44 of file texture_file.h.


Constructor & Destructor Documentation

NL3D::CTextureFile::CTextureFile ( ) [inline]
 

Default constructor.

Author(s):
Stephane Coutelas
Date:
2000

Definition at line 55 of file texture_file.h.

NL3D::CTextureFile::CTextureFile ( std::string s ) [inline]
 

constructor.

Author(s):
Stephane Coutelas
Date:
2000

Definition at line 63 of file texture_file.h.


Member Function Documentation

NL3D::CTextureFile::NLMISC_DECLARE_CLASS ( CTextureFile )
 

void NL3D::CTextureFile::doGenerate ( ) [virtual]
 

Generate the texture, looking in CPath if necessary.

Author(s):
Stephane Coutelas
Date:
2000

Reimplemented from NL3D::ITexture.

Definition at line 44 of file texture_file.cpp.

std::string NL3D::CTextureFile::getFileName ( ) const [inline]
 

get the name of the file containing the texture.

Returns:
name of the file
Author(s):
Stephane Coutelas
Date:
2000

Definition at line 81 of file texture_file.h.

std::string NL3D::CTextureFile::getShareName ( ) const [inline, virtual]
 

Return the Unique ident/name of the texture, used for Driver sharing caps.

Deriver should add a prefix for their texture type. eg "file::pipoland", "noise::4-4-2" etc....

Reimplemented from NL3D::ITexture.

Definition at line 90 of file texture_file.h.

void NL3D::CTextureFile::serial ( NLMISC::IStream & f ) throw (NLMISC::EStream) [inline, virtual]
 

Save the texture file name.

Reimplemented from NLMISC::IStreamable.

Definition at line 101 of file texture_file.h.

void NL3D::CTextureFile::setFileName ( std::string s ) [inline]
 

Set the name of the file containing the texture.

Parameters:
name   of the file
Author(s):
Stephane Coutelas
Date:
2000

Definition at line 72 of file texture_file.h.

bool NL3D::CTextureFile::supportSharing ( ) const [inline, virtual]
 

sharing system.

Author(s):
Lionel Berenguier
Date:
2000

Reimplemented from NL3D::ITexture.

Definition at line 89 of file texture_file.h.


Member Data Documentation

std::string NL3D::CTextureFile::_FileName [private]
 

Definition at line 46 of file texture_file.h.


The documentation for this class was generated from the following files: