#include <u_texture.h>
Inheritance diagram for NL3D::UTextureFile:
Nevrax France
Definition at line 170 of file u_texture.h.
Public Types | |
enum | TMagFilter { Nearest = 0, Linear, MagFilterCount } |
enum | TMinFilter { NearestMipMapOff = 0, NearestMipMapNearest, NearestMipMapLinear, LinearMipMapOff, LinearMipMapNearest, LinearMipMapLinear, MinFilterCount } |
enum | TUploadFormat { Auto = 0, RGBA8888, RGBA4444, RGBA5551, RGB888, RGB565, DXTC1, DXTC1Alpha, DXTC3, DXTC5, Luminance, Alpha, AlphaLuminance, DsDt, UploadFormatCount } |
enum | TWrapMode { Repeat = 0, Clamp, WrapModeCount } |
Public Member Functions | |
virtual bool | allowDegradation () const=0 |
tells if this texture allow the driver to degrade it (default is false for UTextureFile). | |
virtual std::string | getFileName () const=0 |
virtual NLMISC::CRGBA | getPixelColor (sint32 x, sint32 y) const=0 |
virtual void | setAllowDegradation (bool allow)=0 |
Change the degradation mode. NB: this must be done before first render(), ie just after creation. | |
virtual void | setFileName (std::string s)=0 |
virtual void | setReleasable (bool bReleasable)=0 |
|
Magnification mode. Same behavior as OpenGL. Definition at line 87 of file u_texture.h.
00088 { 00089 Nearest=0, 00090 Linear, 00091 00092 MagFilterCount 00093 }; |
|
Minifying mode. Same behavior as OpenGL. If the bitmap has no mipmap, and mipmap is required, then mipmaps are computed.
Definition at line 98 of file u_texture.h.
00099 { 00100 NearestMipMapOff=0, 00101 NearestMipMapNearest, 00102 NearestMipMapLinear, 00103 LinearMipMapOff, 00104 LinearMipMapNearest, 00105 LinearMipMapLinear, 00106 00107 MinFilterCount 00108 }; |
|
Definition at line 64 of file u_texture.h.
00065 { 00066 Auto= 0, 00067 RGBA8888, 00068 RGBA4444, 00069 RGBA5551, 00070 RGB888, 00071 RGB565, 00072 DXTC1, 00073 DXTC1Alpha, 00074 DXTC3, 00075 DXTC5, 00076 Luminance, 00077 Alpha, 00078 AlphaLuminance, 00079 DsDt, 00080 UploadFormatCount 00081 }; |
|
Definition at line 56 of file u_texture.h.
00057 { 00058 Repeat= 0, 00059 Clamp, 00060 00061 WrapModeCount 00062 }; |
|
tells if this texture allow the driver to degrade it (default is false for UTextureFile).
Implemented in NL3D::CTextureFileUser. |
|
get the name of the file containing the texture
Implemented in NL3D::CTextureFileUser. |
|
Implemented in NL3D::CTextureUser. |
|
Implemented in NL3D::CTextureUser. |
|
Implemented in NL3D::CTextureUser. |
|
Implemented in NL3D::CTextureUser. |
|
Implemented in NL3D::CTextureUser. |
|
Implemented in NL3D::CTextureUser. |
|
Set mipmap property to off If the texture is DXTC and has mipmap, the driver will NOT upload them in VRAM if the user dont want them. Implemented in NL3D::CTextureUser. |
|
Set mipmap property to on If the texture is DXTC and has no mipmap the driver will NOT create them. (This is due to performance: to create mipmap in DXTC the driver have to decompress the texture, create the mipmap and recompress the texture to upload it in VRAM. This is really time consuming and texture quality is altered, so the driver will not create them). Implemented in NL3D::CTextureUser. |
|
Change the degradation mode. NB: this must be done before first render(), ie just after creation.
Implemented in NL3D::CTextureFileUser. |
|
Set the name of the file containing the texture
Implemented in NL3D::CTextureFileUser. |
|
Implemented in NL3D::CTextureUser. |
|
Implemented in NL3D::CTextureUser. |
|
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. |
|
By default, parameters are:
NB: if multiple ITexture acces the same data via the sharing system (such as a CTextureFile), then:
Implemented in NL3D::CTextureUser. |
|
Implemented in NL3D::CTextureUser. |