![]() |
Paradox Game Engine
v1.0.0 beta06
|
#include "pvrtt_wrapper.h"#include <PVRTString.h>#include <PVRTextureUtilities.h>#include <PVRTDecompress.h>Go to the source code of this file.
Functions | |
| pvrtexture::PixelType | convertPixelType (PvrttPixelType pixelFormat) |
| pvrtexture::uint64 | pvrttConvertPixelType (PvrttPixelType pixelFormat) |
| PvrttTextureHeader * | pvrttCreateTextureHeaderEmpty () |
| PvrttTextureHeader * | pvrttCreateTextureHeader (PvrttPixelType pixelFormat, int height=1, int width=1, int depth=1, int numMipMaps=1, int numArrayMembers=1, int numFaces=1, EPVRTColourSpace eColourSpace=ePVRTCSpacelRGB, EPVRTVariableType eChannelType=ePVRTVarTypeUnsignedByteNorm, bool bPreMultiplied=false) |
| PvrttTextureHeader * | pvrttCreateTextureHeaderFromCompressedTexture (pvrtexture::uint64 pixelFormat, int height=1, int width=1, int depth=1, int numMipMaps=1, int numArrayMembers=1, int numFaces=1, EPVRTColourSpace eColourSpace=ePVRTCSpacelRGB, EPVRTVariableType eChannelType=ePVRTVarTypeUnsignedByteNorm, bool bPreMultiplied=false) |
| PvrttTextureHeader * | pvrttCopyTextureHeader (const PvrttTextureHeader *headerIn) |
| pvrtexture::uint32 | pvrttGetWidth (PvrttTextureHeader *header, pvrtexture::uint32 uiMipLevel=PVRTEX_TOPMIPLEVEL) |
| pvrtexture::uint32 | pvrttGetHeight (PvrttTextureHeader *header, pvrtexture::uint32 uiMipLevel=PVRTEX_TOPMIPLEVEL) |
| void | pvrttSetWidth (PvrttTextureHeader *header, pvrtexture::uint32 newWidth) |
| void | pvrttSetHeight (PvrttTextureHeader *header, pvrtexture::uint32 newHeight) |
| void | pvrttSetPixelFormat (PvrttTextureHeader *header, PvrttPixelType pixelFormat) |
| pvrtexture::uint32 | pvrttGetDataSize (PvrttTextureHeader *header, int iMipLevel=PVRTEX_ALLMIPLEVELS, bool bAllSurfaces=true, bool bAllFaces=true) |
| pvrtexture::uint32 | pvrttGetTextureSize (PvrttTextureHeader *header, int iMipLevel, bool bAllSurfaces, bool bAllFaces) |
| pvrtexture::uint32 | pvrttGetNumMIPLevels (PvrttTextureHeader *header) |
| void | pvrttSetNumMIPLevels (PvrttTextureHeader *header, int newNumMIPLevels) |
| pvrtexture::uint32 | pvrttGetDepth (PvrttTextureHeader *header, pvrtexture::uint32 uiMipLevel=PVRTEX_TOPMIPLEVEL) |
| pvrtexture::uint32 | pvrttGetBPP (PvrttTextureHeader *header) |
| pvrtexture::uint32 | pvrttGetNumArrayMembers (PvrttTextureHeader *header) |
| pvrtexture::uint32 | pvrttGetNumFaces (PvrttTextureHeader *header) |
| bool | pvrttIsFileCompressed (PvrttTextureHeader *header) |
| pvrtexture::uint64 | pvrttGetPixelType (PvrttTextureHeader *header) |
| pvrtexture::uint32 | pvrttGetMetaDataSize (PvrttTextureHeader *header) |
| EPVRTVariableType | pvrttGetChannelType (PvrttTextureHeader *header) |
| EPVRTColourSpace | pvrttGetColourSpace (PvrttTextureHeader *header) |
| PvrttTexture * | pvrttCreateTexture () |
| PvrttTexture * | pvrttCreateTextureFromHeader (PvrttTextureHeader *sHeader, const void *pData=NULL) |
| PvrttTexture * | pvrttCreateTextureFromFile (const char *szFilePath) |
| PvrttTexture * | pvrttCreateTextureFromMemory (const void *pTexture) |
| void | pvrttDestroyTexture (PvrttTexture *texture) |
| bool | pvrttSaveFile (PvrttTexture *texture, const char *filePath) |
| const PvrttTextureHeader * | pvrttGetHeader (PvrttTexture *texture) |
| void * | pvrttGetDataPtr (PvrttTexture *texture, pvrtexture::uint32 uiMIPLevel=0, pvrtexture::uint32 uiArrayMember=0, pvrtexture::uint32 uiFaceNumber=0) |
| bool | pvrttGenerateMIPMaps (PvrttTexture &texture, const pvrtexture::EResizeMode eFilterMode, int uiMIPMapsToDo=PVRTEX_ALLMIPLEVELS) |
| bool | pvrttTranscodeWithNoConversion (PvrttTexture &texture, const PvrttPixelType ptFormat, const EPVRTVariableType eChannelType, const EPVRTColourSpace eColourspace, const pvrtexture::ECompressorQuality eQuality=pvrtexture::ePVRTCNormal, const bool bDoDither=false) |
| bool | pvrttTranscode (PvrttTexture &texture, pvrtexture::uint64 ptFormat, const EPVRTVariableType eChannelType, const EPVRTColourSpace eColourspace, const pvrtexture::ECompressorQuality eQuality, const bool bDoDither) |
| bool | pvrttCopyChannels (PvrttTexture &sTexture, const PvrttTexture &sTextureSource, pvrtexture::uint32 uiNumChannelCopies, pvrtexture::EChannelName *eChannels, pvrtexture::EChannelName *eChannelsSource) |
| bool | pvrttResize (PvrttTexture &sTexture, const pvrtexture::uint32 &u32NewWidth, const pvrtexture::uint32 &u32NewHeight, const pvrtexture::uint32 &u32NewDepth, const pvrtexture::EResizeMode eResizeMode) |
| bool | pvrttFlip (PvrttTexture &sTexture, const EPVRTAxis eFlipDirection) |
| bool | pvrttGenerateNormalMap (PvrttTexture &sTexture, const float fScale, const char *sChannelOrder) |
| bool | pvrttPreMultipliedAlpha (PvrttTexture &sTexture) |
| pvrtexture::PixelType convertPixelType | ( | PvrttPixelType | pixelFormat | ) |
Definition at line 8 of file pvrtt_wrapper.cpp.
References PVRTT_Standard32PixelType, PVRTT_Standard8PixelType, and PVRTT_tandard16PixelType.
Referenced by pvrttCreateTextureHeader(), pvrttSetPixelFormat(), and pvrttTranscodeWithNoConversion().
| pvrtexture::uint64 pvrttConvertPixelType | ( | PvrttPixelType | pixelFormat | ) |
Definition at line 25 of file pvrtt_wrapper.cpp.
References PVRTT_Standard32PixelType, PVRTT_Standard8PixelType, and PVRTT_tandard16PixelType.
| bool pvrttCopyChannels | ( | PvrttTexture & | sTexture, |
| const PvrttTexture & | sTextureSource, | ||
| pvrtexture::uint32 | uiNumChannelCopies, | ||
| pvrtexture::EChannelName * | eChannels, | ||
| pvrtexture::EChannelName * | eChannelsSource | ||
| ) |
Definition at line 233 of file pvrtt_wrapper.cpp.
| PvrttTextureHeader* pvrttCopyTextureHeader | ( | const PvrttTextureHeader * | headerIn | ) |
Definition at line 59 of file pvrtt_wrapper.cpp.
| PvrttTexture* pvrttCreateTexture | ( | ) |
Definition at line 159 of file pvrtt_wrapper.cpp.
| PvrttTexture* pvrttCreateTextureFromFile | ( | const char * | szFilePath | ) |
Definition at line 170 of file pvrtt_wrapper.cpp.
| PvrttTexture* pvrttCreateTextureFromHeader | ( | PvrttTextureHeader * | sHeader, |
| const void * | pData = NULL |
||
| ) |
Definition at line 164 of file pvrtt_wrapper.cpp.
| PvrttTexture* pvrttCreateTextureFromMemory | ( | const void * | pTexture | ) |
Definition at line 175 of file pvrtt_wrapper.cpp.
| PvrttTextureHeader* pvrttCreateTextureHeader | ( | PvrttPixelType | pixelFormat, |
| int | height = 1, |
||
| int | width = 1, |
||
| int | depth = 1, |
||
| int | numMipMaps = 1, |
||
| int | numArrayMembers = 1, |
||
| int | numFaces = 1, |
||
| EPVRTColourSpace | eColourSpace = ePVRTCSpacelRGB, |
||
| EPVRTVariableType | eChannelType = ePVRTVarTypeUnsignedByteNorm, |
||
| bool | bPreMultiplied = false |
||
| ) |
Definition at line 49 of file pvrtt_wrapper.cpp.
References convertPixelType().
| PvrttTextureHeader* pvrttCreateTextureHeaderEmpty | ( | ) |
Definition at line 44 of file pvrtt_wrapper.cpp.
| PvrttTextureHeader* pvrttCreateTextureHeaderFromCompressedTexture | ( | pvrtexture::uint64 | pixelFormat, |
| int | height = 1, |
||
| int | width = 1, |
||
| int | depth = 1, |
||
| int | numMipMaps = 1, |
||
| int | numArrayMembers = 1, |
||
| int | numFaces = 1, |
||
| EPVRTColourSpace | eColourSpace = ePVRTCSpacelRGB, |
||
| EPVRTVariableType | eChannelType = ePVRTVarTypeUnsignedByteNorm, |
||
| bool | bPreMultiplied = false |
||
| ) |
Definition at line 54 of file pvrtt_wrapper.cpp.
| void pvrttDestroyTexture | ( | PvrttTexture * | texture | ) |
Definition at line 185 of file pvrtt_wrapper.cpp.
| bool pvrttFlip | ( | PvrttTexture & | sTexture, |
| const EPVRTAxis | eFlipDirection | ||
| ) |
Definition at line 243 of file pvrtt_wrapper.cpp.
| bool pvrttGenerateMIPMaps | ( | PvrttTexture & | texture, |
| const pvrtexture::EResizeMode | eFilterMode, | ||
| int | uiMIPMapsToDo = PVRTEX_ALLMIPLEVELS |
||
| ) |
Definition at line 207 of file pvrtt_wrapper.cpp.
| bool pvrttGenerateNormalMap | ( | PvrttTexture & | sTexture, |
| const float | fScale, | ||
| const char * | sChannelOrder | ||
| ) |
Definition at line 248 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetBPP | ( | PvrttTextureHeader * | header | ) |
Definition at line 116 of file pvrtt_wrapper.cpp.
| EPVRTVariableType pvrttGetChannelType | ( | PvrttTextureHeader * | header | ) |
Definition at line 146 of file pvrtt_wrapper.cpp.
| EPVRTColourSpace pvrttGetColourSpace | ( | PvrttTextureHeader * | header | ) |
Definition at line 151 of file pvrtt_wrapper.cpp.
| void* pvrttGetDataPtr | ( | PvrttTexture * | texture, |
| pvrtexture::uint32 | uiMIPLevel = 0, |
||
| pvrtexture::uint32 | uiArrayMember = 0, |
||
| pvrtexture::uint32 | uiFaceNumber = 0 |
||
| ) |
Definition at line 200 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetDataSize | ( | PvrttTextureHeader * | header, |
| int | iMipLevel = PVRTEX_ALLMIPLEVELS, |
||
| bool | bAllSurfaces = true, |
||
| bool | bAllFaces = true |
||
| ) |
Definition at line 91 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetDepth | ( | PvrttTextureHeader * | header, |
| pvrtexture::uint32 | uiMipLevel = PVRTEX_TOPMIPLEVEL |
||
| ) |
Definition at line 111 of file pvrtt_wrapper.cpp.
| const PvrttTextureHeader* pvrttGetHeader | ( | PvrttTexture * | texture | ) |
Definition at line 195 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetHeight | ( | PvrttTextureHeader * | header, |
| pvrtexture::uint32 | uiMipLevel = PVRTEX_TOPMIPLEVEL |
||
| ) |
Definition at line 71 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetMetaDataSize | ( | PvrttTextureHeader * | header | ) |
Definition at line 141 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetNumArrayMembers | ( | PvrttTextureHeader * | header | ) |
Definition at line 121 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetNumFaces | ( | PvrttTextureHeader * | header | ) |
Definition at line 126 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetNumMIPLevels | ( | PvrttTextureHeader * | header | ) |
Definition at line 101 of file pvrtt_wrapper.cpp.
| pvrtexture::uint64 pvrttGetPixelType | ( | PvrttTextureHeader * | header | ) |
Definition at line 136 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetTextureSize | ( | PvrttTextureHeader * | header, |
| int | iMipLevel, | ||
| bool | bAllSurfaces, | ||
| bool | bAllFaces | ||
| ) |
Definition at line 96 of file pvrtt_wrapper.cpp.
| pvrtexture::uint32 pvrttGetWidth | ( | PvrttTextureHeader * | header, |
| pvrtexture::uint32 | uiMipLevel = PVRTEX_TOPMIPLEVEL |
||
| ) |
Definition at line 66 of file pvrtt_wrapper.cpp.
| bool pvrttIsFileCompressed | ( | PvrttTextureHeader * | header | ) |
Definition at line 131 of file pvrtt_wrapper.cpp.
| bool pvrttPreMultipliedAlpha | ( | PvrttTexture & | sTexture | ) |
Definition at line 253 of file pvrtt_wrapper.cpp.
| bool pvrttResize | ( | PvrttTexture & | sTexture, |
| const pvrtexture::uint32 & | u32NewWidth, | ||
| const pvrtexture::uint32 & | u32NewHeight, | ||
| const pvrtexture::uint32 & | u32NewDepth, | ||
| const pvrtexture::EResizeMode | eResizeMode | ||
| ) |
Definition at line 238 of file pvrtt_wrapper.cpp.
References DirectX::Resize().
| bool pvrttSaveFile | ( | PvrttTexture * | texture, |
| const char * | filePath | ||
| ) |
Definition at line 190 of file pvrtt_wrapper.cpp.
| void pvrttSetHeight | ( | PvrttTextureHeader * | header, |
| pvrtexture::uint32 | newHeight | ||
| ) |
Definition at line 81 of file pvrtt_wrapper.cpp.
| void pvrttSetNumMIPLevels | ( | PvrttTextureHeader * | header, |
| int | newNumMIPLevels | ||
| ) |
Definition at line 106 of file pvrtt_wrapper.cpp.
| void pvrttSetPixelFormat | ( | PvrttTextureHeader * | header, |
| PvrttPixelType | pixelFormat | ||
| ) |
Definition at line 86 of file pvrtt_wrapper.cpp.
References convertPixelType().
| void pvrttSetWidth | ( | PvrttTextureHeader * | header, |
| pvrtexture::uint32 | newWidth | ||
| ) |
Definition at line 76 of file pvrtt_wrapper.cpp.
| bool pvrttTranscode | ( | PvrttTexture & | texture, |
| pvrtexture::uint64 | ptFormat, | ||
| const EPVRTVariableType | eChannelType, | ||
| const EPVRTColourSpace | eColourspace, | ||
| const pvrtexture::ECompressorQuality | eQuality, | ||
| const bool | bDoDither | ||
| ) |
Definition at line 217 of file pvrtt_wrapper.cpp.
| bool pvrttTranscodeWithNoConversion | ( | PvrttTexture & | texture, |
| const PvrttPixelType | ptFormat, | ||
| const EPVRTVariableType | eChannelType, | ||
| const EPVRTColourSpace | eColourspace, | ||
| const pvrtexture::ECompressorQuality | eQuality = pvrtexture::ePVRTCNormal, |
||
| const bool | bDoDither = false |
||
| ) |
Definition at line 212 of file pvrtt_wrapper.cpp.
References convertPixelType().