# 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::CTextureMem Class Reference

CTextureMem. More...

#include <texture_mem.h>

Inheritance diagram for NL3D::CTextureMem

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

Collaboration graph
[legend]
List of all members.

Public Methods

 CTextureMem ()
 Default constructor. More...

virtual ~CTextureMem ()
 Destructor. More...

 CTextureMem (uint8 *data, uint32 lenght, bool _delete)
 constructor. More...

void setPointer (uint8 *data, uint32 length, bool _delete)
 Set the pointer of the mem file containing the texture. More...

uint8getPointer () const
 Get the Pointer of the memory file containing the texture. More...

uint32 getLength () const
 Get length of the memory file containing the texture. More...

bool isDeletable () const
 Return true if the class handle the delete of the pointer. More...

void doGenerate ()
 Generate the texture. More...

virtual void serial (NLMISC::IStream &f) throw (NLMISC::EStream)
 Todo: serialize a mem texture. More...

 NLMISC_DECLARE_CLASS (CTextureMem)

Private Attributes

uint8_Data
uint32 _Length
bool _Delete

Detailed Description

CTextureMem.

Definition at line 41 of file texture_mem.h.


Constructor & Destructor Documentation

NL3D::CTextureMem::CTextureMem ( ) [inline]
 

Default constructor.

Definition at line 52 of file texture_mem.h.

NL3D::CTextureMem::~CTextureMem ( ) [inline, virtual]
 

Destructor.

Definition at line 62 of file texture_mem.h.

NL3D::CTextureMem::CTextureMem ( uint8 * data,
uint32 lenght,
bool _delete ) [inline]
 

constructor.

Parameters:
data   Pointer of the file.
_delete   Is true if the class must delete the pointer.

Definition at line 74 of file texture_mem.h.


Member Function Documentation

NL3D::CTextureMem::NLMISC_DECLARE_CLASS ( CTextureMem )
 

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

Generate the texture.

Reimplemented from NL3D::ITexture.

Definition at line 41 of file texture_mem.cpp.

uint32 NL3D::CTextureMem::getLength ( ) const [inline]
 

Get length of the memory file containing the texture.

Definition at line 107 of file texture_mem.h.

uint8 * NL3D::CTextureMem::getPointer ( ) const [inline]
 

Get the Pointer of the memory file containing the texture.

Definition at line 101 of file texture_mem.h.

bool NL3D::CTextureMem::isDeletable ( ) const [inline]
 

Return true if the class handle the delete of the pointer.

Definition at line 113 of file texture_mem.h.

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

Todo: serialize a mem texture.

Reimplemented from NLMISC::IStreamable.

Definition at line 123 of file texture_mem.h.

void NL3D::CTextureMem::setPointer ( uint8 * data,
uint32 length,
bool _delete ) [inline]
 

Set the pointer of the mem file containing the texture.

Parameters:
data   Pointer of the file.
_delete   Is true if the class must delete the pointer.

Definition at line 87 of file texture_mem.h.


Member Data Documentation

uint8 * NL3D::CTextureMem::_Data [private]
 

Reimplemented from NLMISC::CBitmap.

Definition at line 43 of file texture_mem.h.

bool NL3D::CTextureMem::_Delete [private]
 

Definition at line 45 of file texture_mem.h.

uint32 NL3D::CTextureMem::_Length [private]
 

Definition at line 44 of file texture_mem.h.


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