Voilà, je ne comprends plus rien
je fait :
Code :
- struct TGAFileHeaderFormat
- {
- unsigned char IDLength;
- unsigned char ColorMapType;
- unsigned char ImageType;
- short FirstEntryIndex;
- short ColorMapLenght;
- unsigned char ColorMapEntrySize;
- short XOrigin;
- short YOrigin;
- short ImageWidth;
- short ImageHeight;
- unsigned char PixelDepth;
- unsigned char ImageDescriptor;
- };
- struct TGAFileHeaderFormat TGAFileHeader;
- int ee;
- ee=sizeof(TGAFileHeader);
|
J'obtiens ee=20 alors que normalement je devrais obtenir 18...
Mais si je retire short FirstEntryIndex; et short ColorMapLenght; j'obtiens bien 14...
Est ce quelqu'un sait pkoi ça fait ça?