I am working on a TGA image loader, the last bit of an RLE packet determines the type of packet. I see where someone did this to make that determination, but I really dont understand whats going on here.
Im just getting back to coding, and some things im fuzzy on. But byte is the same as unsigned char right?Code:
//packetHeader is read in from the file
if ((packetHeader & 128) == 128)