 |
|
 |
 |
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 ReferenceGame interface for manipulating Basic texture.
More...
#include <u_texture.h>
Inheritance diagram for NL3D::UTexture:
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,
DsDt,
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 |
| 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:
-
Lionel Berenguier , Nevrax France
-
Date:
-
2001
Definition at line 42 of file u_texture.h.
Member Enumeration Documentation
| enum NL3D::UTexture::TMagFilter
|
|
| 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.
Referenced by NL3D::CTextureUser::getMinFilter, and NL3D::CTextureUser::setFilterMode. |
| enum NL3D::UTexture::TUploadFormat
|
|
| enum NL3D::UTexture::TWrapMode
|
|
Constructor & Destructor Documentation
| NL3D::UTexture::UTexture |
( |
|
) |
[inline, protected] |
|
| virtual NL3D::UTexture::~UTexture |
( |
|
) |
[inline, protected, virtual] |
|
Member Function Documentation
| virtual TMagFilter NL3D::UTexture::getMagFilter |
( |
|
) |
const [pure virtual] |
|
| virtual TMinFilter NL3D::UTexture::getMinFilter |
( |
|
) |
const [pure virtual] |
|
| virtual TUploadFormat NL3D::UTexture::getUploadFormat |
( |
|
) |
const [pure virtual] |
|
| virtual TWrapMode NL3D::UTexture::getWrapS |
( |
|
) |
const [pure virtual] |
|
| virtual TWrapMode NL3D::UTexture::getWrapT |
( |
|
) |
const [pure virtual] |
|
| virtual bool NL3D::UTexture::mipMapOff |
( |
|
) |
const [pure virtual] |
|
| virtual bool NL3D::UTexture::mipMapOn |
( |
|
) |
const [pure virtual] |
|
| virtual 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).
Implemented in NL3D::CTextureUser. |
| virtual void NL3D::UTexture::setWrapS |
( |
TWrapMode |
mode |
) |
[pure virtual] |
|
|
|
- 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.
Implemented in NL3D::CTextureUser. |
| virtual void NL3D::UTexture::setWrapT |
( |
TWrapMode |
mode |
) |
[pure virtual] |
|
The documentation for this class was generated from the following file:
|
 |