Hello,
I have an issue with the use of PVRTexLib, more precisely with the constructor of the class CPVRTextureHeader. I'm using Visual Studio 2003, i've installed PVRTexLib.dll, include headers, define _WINDLL_IMPORT as described in the manual.
#include <iostream>
using namespace std;
#define _WINDLL_IMPORT 1
#include "Include/PVRTexLib.h"
using namespace pvrtexlib;
const char g_TexFilePVR[] = "Picture/Mallet.pvr";
int main()
{
PVRTRY
{
FILE* p_pvrFile = fopen(g_TexFilePVR, "rb");
CPVRTextureHeader* p_textureHeader = NULL;
if (p_pvrFile != NULL)
{
// issue with CPVRTextureHeader constructor
p_textureHeader = new CPVRTextureHeader(p_pvrFile);
}
}
PVRCATCH(myException)
{
printf("Exception : %s",myException.what());
}
return 0;
}
//// end TestEncodeIntoPVR
If you have a solution, i'll be happy :-)
Thank you.