This is the main PVRTexLib header file. This header contains a utility function for transcoding textures, as well as pre-processor utilities such as; resizing, rotating, channel copying and MIPMap manipulation. More...
Go to the source code of this file.
Namespaces | |
pvrtexture | |
PVRTexture namespace. Contains methods and classes for PVRTexLib. | |
Constant Groups | |
pvrtexture | |
PVRTexture namespace. Contains methods and classes for PVRTexLib. | |
Functions | |
bool PVR_DLL | pvrtexture::Resize (CPVRTexture &sTexture, const uint32 &u32NewWidth, const uint32 &u32NewHeight, const uint32 &u32NewDepth, const EResizeMode eResizeMode) |
Resizes the texture to new specified dimensions. Filtering mode is specified with "eResizeMode". More... | |
bool PVR_DLL | pvrtexture::ResizeCanvas (CPVRTexture &sTexture, const uint32 &u32NewWidth, const uint32 &u32NewHeight, const uint32 &u32NewDepth, const int32 &i32XOffset, const int32 &i32YOffset, const int32 &i32ZOffset) |
Resizes the canvas of a texture to new specified dimensions. Filtering mode is specified with "eResizeMode". More... | |
bool PVR_DLL | pvrtexture::Rotate90 (CPVRTexture &sTexture, const EPVRTAxis eRotationAxis, const bool bForward) |
Rotates a texture by 90 degrees around the given axis. bForward controls direction of rotation. More... | |
bool PVR_DLL | pvrtexture::Flip (CPVRTexture &sTexture, const EPVRTAxis eFlipDirection) |
Flips a texture in a given direction. More... | |
bool PVR_DLL | pvrtexture::Border (CPVRTexture &sTexture, uint32 uiBorderX, uint32 uiBorderY, uint32 uiBorderZ) |
Adds a user specified border to the texture. More... | |
bool PVR_DLL | pvrtexture::PreMultiplyAlpha (CPVRTexture &sTexture) |
Pre-multiplies a texture's colours by its alpha values. More... | |
bool PVR_DLL | pvrtexture::Bleed (CPVRTexture &sTexture) |
Allows a texture's colours to run into any fully transparent areas. More... | |
bool PVR_DLL | pvrtexture::SetChannels (CPVRTexture &sTexture, uint32 uiNumChannelSets, EChannelName *eChannels, uint32 *pValues) |
Sets the specified number of channels to values specified in pValues. More... | |
bool PVR_DLL | pvrtexture::SetChannelsFloat (CPVRTexture &sTexture, uint32 uiNumChannelSets, EChannelName *eChannels, float *pValues) |
Sets the specified number of channels to values specified in float pValues. More... | |
bool PVR_DLL | pvrtexture::CopyChannels (CPVRTexture &sTexture, const CPVRTexture &sTextureSource, uint32 uiNumChannelCopies, EChannelName *eChannels, EChannelName *eChannelsSource) |
Copies the specified channels from sTextureSource into sTexture. More... | |
bool PVR_DLL | pvrtexture::GenerateNormalMap (CPVRTexture &sTexture, const float fScale, CPVRTString sChannelOrder) |
Generates a Normal Map from a given height map. More... | |
bool PVR_DLL | pvrtexture::GenerateMIPMaps (CPVRTexture &sTexture, const EResizeMode eFilterMode, const uint32 uiMIPMapsToDo=PVRTEX_ALLMIPLEVELS) |
Generates MIPMaps for a source texture. Default is to create a complete MIPMap chain, however this can be overridden with uiMIPMapsToDo. More... | |
bool PVR_DLL | pvrtexture::ColourMIPMaps (CPVRTexture &sTexture) |
Colours a texture's MIPMap levels with artificial colours for debugging. MIP levels are coloured in the following order: Red, Green, Blue, Cyan, Magenta and Yellow in a repeating pattern. More... | |
bool PVR_DLL | pvrtexture::Transcode (CPVRTexture &sTexture, const PixelType ptFormat, const EPVRTVariableType eChannelType, const EPVRTColourSpace eColourspace, const ECompressorQuality eQuality=ePVRTCNormal, const bool bDoDither=false) |
Transcodes a texture from its original format into a newly specified format. Will either quantise or dither to lower precisions based on bDoDither. uiQuality specifies the quality for PVRTC and ETC compression. More... | |
This is the main PVRTexLib header file. This header contains a utility function for transcoding textures, as well as pre-processor utilities such as; resizing, rotating, channel copying and MIPMap manipulation.