Endianized colors for vastly better big-endian version
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@1047 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
9f616f8f8c
commit
26158abb0c
|
@ -143,7 +143,11 @@
|
|||
*/
|
||||
/***************************************************************************/
|
||||
|
||||
#ifdef __BIG_ENDIAN__
|
||||
typedef struct {UBYTE a, r, g, b;} PIELIGHTBYTES; //for byte fields in a DWORD
|
||||
#else
|
||||
typedef struct {UBYTE b, g, r, a;} PIELIGHTBYTES; //for byte fields in a DWORD
|
||||
#endif
|
||||
typedef union {PIELIGHTBYTES byte; UDWORD argb;} PIELIGHT;
|
||||
typedef struct {UBYTE r, g, b, a;} PIEVERTLIGHT;
|
||||
typedef struct {SDWORD sx, sy, sz; UWORD tu, tv; PIELIGHT light, specular;} PIEVERTEX;
|
||||
|
|
Loading…
Reference in New Issue