Compressed textures with devil
how i can generate compressed textures (mimpmaped) with DevIL?
i read DevIL user guide and enabled ILUT parameters but it dos not work, my graphic card support compressed textures ( is NV_Geforce 8500)
Are you talking about DXT compressed textures?
I hadn't exactly figured it out but it goes something like this
then I'm not sure. I experimented with
ilGetInteger(IL_IMAGE_BITS_PER_PIXEL)
Width=ilGetInteger(IL_IMAGE_WIDTH);
Height=ilGetInteger(IL_IMAGE_HEIGHT);
Depth=ilGetInteger(IL_IMAGE_DEPTH);
ilvalue=ilGetInteger(IL_IMAGE_CUBEFLAGS);
I hadn't exactly figured it out but it goes something like this
ilInit();ilGenImages(1, &imageID);ilBindImage(imageID);hfile=fopen(pfilePath, "rb");if(hfile==0){ ERROR;}fclose(hfile);ilLoadImage((schar *const)pfilePath);
then I'm not sure. I experimented with
ilGetInteger(IL_IMAGE_BITS_PER_PIXEL)
Width=ilGetInteger(IL_IMAGE_WIDTH);
Height=ilGetInteger(IL_IMAGE_HEIGHT);
Depth=ilGetInteger(IL_IMAGE_DEPTH);
ilvalue=ilGetInteger(IL_IMAGE_CUBEFLAGS);
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement