|
|
|
|
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 ReferenceUTexture implementation.
More...
#include <texture_user.h>
Inheritance diagram for NL3D::CTextureUser
[legend]Collaboration diagram for NL3D::CTextureUser:
[legend]List of all members.
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]
|
|
Member Function Documentation
ITexture * NL3D::CTextureUser::getITexture (
|
) [inline]
|
|
TMagFilter NL3D::CTextureUser::getMagFilter (
|
) const [inline, virtual]
|
|
TMinFilter NL3D::CTextureUser::getMinFilter (
|
) const [inline, virtual]
|
|
TUploadFormat NL3D::CTextureUser::getUploadFormat (
|
) const [inline, virtual]
|
|
TWrapMode NL3D::CTextureUser::getWrapS (
|
) const [inline, virtual]
|
|
TWrapMode NL3D::CTextureUser::getWrapT (
|
) const [inline, virtual]
|
|
bool NL3D::CTextureUser::mipMapOff (
|
) const [inline, virtual]
|
|
bool NL3D::CTextureUser::mipMapOn (
|
) const [inline, virtual]
|
|
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]
|
|
Member Data Documentation
CSmartPtr< ITexture > NL3D::CTextureUser::_Texture [protected]
|
|
The documentation for this class was generated from the following file:
|
|