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

UTexture implementation. More...

#include <texture_user.h>

Inheritance diagram for NL3D::CTextureUser

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

Collaboration graph
[legend]
List of all members.

Public Methods

 CTextureUser (ITexture *text)
 This ctpor takes a freshly created texture!! UTexture will owns this texture (via smartptr). More...

virtual ~CTextureUser ()
virtual void setWrapS (TWrapMode mode)
 By default, parameters are: - WrapS==Repeat - WrapT==Repeat - UploadFormat== Auto - MagFilter== Linear. More...

virtual void setWrapT (TWrapMode mode)
virtual TWrapMode getWrapS () const
virtual TWrapMode getWrapT () const
virtual void setUploadFormat (TUploadFormat pf)
 Replace the uploaded format of the texture. More...

virtual TUploadFormat getUploadFormat () const
virtual void setFilterMode (TMagFilter magf, TMinFilter minf)
virtual TMagFilter getMagFilter () const
virtual TMinFilter getMinFilter () const
virtual bool mipMapOff () const
virtual bool mipMapOn () const
ITexturegetITexture ()
 Accessor for UMaterial imp. More...


Protected Attributes

CSmartPtr<ITexture_Texture

Detailed Description

UTexture implementation.

This Texture must keep a SmartPtr on the real ITexture. Because CMaterial attach texture with SmartPtr too!!

Author(s):
Lionel Berenguier , Nevrax France
Date:
2001

Definition at line 50 of file texture_user.h.


Constructor & Destructor Documentation

NL3D::CTextureUser::CTextureUser ( ITexture * text ) [inline]
 

This ctpor takes a freshly created texture!! UTexture will owns this texture (via smartptr).

Definition at line 60 of file texture_user.h.

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

Definition at line 71 of file texture_user.h.


Member Function Documentation

ITexture * NL3D::CTextureUser::getITexture ( ) [inline]
 

Accessor for UMaterial imp.

Definition at line 124 of file texture_user.h.

TMagFilter NL3D::CTextureUser::getMagFilter ( ) const [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 105 of file texture_user.h.

TMinFilter NL3D::CTextureUser::getMinFilter ( ) const [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 109 of file texture_user.h.

TUploadFormat NL3D::CTextureUser::getUploadFormat ( ) const [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 97 of file texture_user.h.

TWrapMode NL3D::CTextureUser::getWrapS ( ) const [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 85 of file texture_user.h.

TWrapMode NL3D::CTextureUser::getWrapT ( ) const [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 89 of file texture_user.h.

bool NL3D::CTextureUser::mipMapOff ( ) const [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 113 of file texture_user.h.

bool NL3D::CTextureUser::mipMapOn ( ) const [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 117 of file texture_user.h.

void NL3D::CTextureUser::setFilterMode ( TMagFilter magf,
TMinFilter minf ) [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 101 of file texture_user.h.

void NL3D::CTextureUser::setUploadFormat ( TUploadFormat pf ) [inline, virtual]
 

Replace the uploaded format of the texture.

If "Auto", the driver use CBitmap::getPixelFormat() to find the best associated pixelFormat. When no alpha is wanted (RGB, Luminance....), texture default output is 1.0. For "Alpha" mode, RGB output is (0,0,0).

Reimplemented from NL3D::UTexture.

Definition at line 93 of file texture_user.h.

void NL3D::CTextureUser::setWrapS ( TWrapMode mode ) [inline, virtual]
 

By default, parameters are: - WrapS==Repeat - WrapT==Repeat - UploadFormat== Auto - MagFilter== Linear.

  • MinFilter= LinearMipMapLinear.
NB: if multiple ITexture acces the same data via the sharing system (such as a CTextureFile), then:
  • WrapS/WrapT is LOCAL for each ITexture (ie each ITexture will have his own Wrap mode) => no duplication is made.
  • UploadFormat may duplicate the texture in video memory. There is one texture per different UploadFormat.
  • MinFilter may duplicate the texture in video memory in the same way, wether the texture has mipmap or not.

Reimplemented from NL3D::UTexture.

Definition at line 77 of file texture_user.h.

void NL3D::CTextureUser::setWrapT ( TWrapMode mode ) [inline, virtual]
 

Reimplemented from NL3D::UTexture.

Definition at line 81 of file texture_user.h.


Member Data Documentation

CSmartPtr< ITexture > NL3D::CTextureUser::_Texture [protected]
 

Definition at line 53 of file texture_user.h.


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