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

Game interface for manipulating Basic texture. More...

#include <u_texture.h>

Inheritance diagram for NL3D::UTexture

Inheritance graph
[legend]
List of all members.

Public Types

enum  TWrapMode {
  Repeat = 0,
  Clamp,
  WrapModeCount
}
enum  TUploadFormat {
  Auto = 0,
  RGBA8888,
  RGBA4444,
  RGBA5551,
  RGB888,
  RGB565,
  DXTC1,
  DXTC1Alpha,
  DXTC3,
  DXTC5,
  Luminance,
  Alpha,
  AlphaLuminance,
  UploadFormatCount
}
enum  TMagFilter {
  Nearest = 0,
  Linear,
  MagFilterCount
}
 Magnification mode. More...

enum  TMinFilter {
  NearestMipMapOff = 0,
  NearestMipMapNearest,
  NearestMipMapLinear,
  LinearMipMapOff,
  LinearMipMapNearest,
  LinearMipMapLinear,
  MinFilterCount
}
 Minifying mode. More...


Public Methods

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

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

virtual TUploadFormat getUploadFormat () const = 0
virtual void setFilterMode (TMagFilter magf, TMinFilter minf) = 0
virtual TMagFilter getMagFilter () const = 0
virtual TMinFilter getMinFilter () const = 0
virtual bool mipMapOff () const = 0
virtual bool mipMapOn () const = 0

Protected Methods

 UTexture ()
virtual ~UTexture ()

Detailed Description

Game interface for manipulating Basic texture.

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

Definition at line 42 of file u_texture.h.


Member Enumeration Documentation

enum NL3D::UTexture::TMagFilter
 

Magnification mode.

Same behavior as OpenGL.

Enumeration values:
Nearest  
Linear  
MagFilterCount  

Definition at line 87 of file u_texture.h.

enum NL3D::UTexture::TMinFilter
 

Minifying mode.

Same behavior as OpenGL. If the bitmap has no mipmap, and mipmap is required, then mipmaps are computed.

Enumeration values:
NearestMipMapOff  
NearestMipMapNearest  
NearestMipMapLinear  
LinearMipMapOff  
LinearMipMapNearest  
LinearMipMapLinear  
MinFilterCount  

Definition at line 98 of file u_texture.h.

enum NL3D::UTexture::TUploadFormat
 

Enumeration values:
Auto  
RGBA8888  
RGBA4444  
RGBA5551  
RGB888  
RGB565  
DXTC1  
DXTC1Alpha  
DXTC3  
DXTC5  
Luminance  
Alpha  
AlphaLuminance  
UploadFormatCount  

Definition at line 64 of file u_texture.h.

enum NL3D::UTexture::TWrapMode
 

Enumeration values:
Repeat  
Clamp  
WrapModeCount  

Definition at line 56 of file u_texture.h.


Constructor & Destructor Documentation

NL3D::UTexture::UTexture ( ) [inline, protected]
 

Definition at line 48 of file u_texture.h.

NL3D::UTexture::~UTexture ( ) [inline, protected, virtual]
 

Definition at line 49 of file u_texture.h.


Member Function Documentation

virtual TMagFilter NL3D::UTexture::getMagFilter ( ) const [pure virtual]
 

Reimplemented in NL3D::CTextureUser.

virtual TMinFilter NL3D::UTexture::getMinFilter ( ) const [pure virtual]
 

Reimplemented in NL3D::CTextureUser.

virtual TUploadFormat NL3D::UTexture::getUploadFormat ( ) const [pure virtual]
 

Reimplemented in NL3D::CTextureUser.

virtual TWrapMode NL3D::UTexture::getWrapS ( ) const [pure virtual]
 

Reimplemented in NL3D::CTextureUser.

virtual TWrapMode NL3D::UTexture::getWrapT ( ) const [pure virtual]
 

Reimplemented in NL3D::CTextureUser.

virtual bool NL3D::UTexture::mipMapOff ( ) const [pure virtual]
 

Reimplemented in NL3D::CTextureUser.

virtual bool NL3D::UTexture::mipMapOn ( ) const [pure virtual]
 

Reimplemented in NL3D::CTextureUser.

virtual void NL3D::UTexture::setFilterMode ( TMagFilter magf,
TMinFilter minf ) [pure virtual]
 

Reimplemented in NL3D::CTextureUser.

void NL3D::UTexture::setUploadFormat ( TUploadFormat pf ) [pure 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 in NL3D::CTextureUser.

void NL3D::UTexture::setWrapS ( TWrapMode mode ) [pure 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 in NL3D::CTextureUser.

virtual void NL3D::UTexture::setWrapT ( TWrapMode mode ) [pure virtual]
 

Reimplemented in NL3D::CTextureUser.


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