µ¹°í·¡ ȨÆäÀÌÁö
ID:
PW:
¿î¿µÀÚ
(2005-03-02 16:28:08, Hit :
3037
, Vote :
1194
)
NvidiaÅøÀ» ÀÌ¿ëÇØ ÀϰýÀûÀ¸·Î TGA¸¦ DDS·Î º¯È¯
NvidiaÅøÀ» ÀÌ¿ëÇØ ÀϰýÀûÀ¸·Î TGA¸¦ DDS·Î º¯È¯
int GetTGABit( const char* szTgaName )
{
FILE* fp;
fp = fopen(szTgaName, "rb");
if(fp == NULL)
return -1;
//TGA ÆÄÀÏÀÇ Ä®¶ó ºñÆ®¼ö¸¦ ÀÐ¾î ¿Â´Ù.
fpos_t pos = 16;
fsetpos(fp, &pos);
unsigned char ucBit;
fread(&ucBit, 1, 1, fp);
fclose(fp);
return int(ucBit);
}
char szCommand[MAX_PATH];
if(GetTGABit(tgaFileName) )
sprintf(szCommand, "nvdxt -file %s -outdir output -dxt5", tgaFileName);
else
sprintf(szCommand, "nvdxt -file %s -outdir output -dxt1", tgaFileName);
system(szCommand);
¡â
À¯´ÏƼ ¼ÎÀÌ´õ
Copyright 1999-2022
Zeroboard
/ skin by
zero