Home » Community » Newbie corner » How does one determine the byte order of the RGBA struct?
|
|
Re: How does one determine the byte order of the RGBA struct? [message #47993 is a reply to message #47974] |
Wed, 03 May 2017 04:51  |
ptkacz
Messages: 89 Registered: March 2017
|
Member |
|
|
Thanks! That's a neat macro.
As for why, depending on what operations are to be applied to an RGBA structure, one might need to know how data is ordered. Similarly, if one ports code from one platform to another, how does one know if there's a byte ordering change, etc?
When I started looking at the definition of RGBA, there's a compiler directive of something like, "#if bla" then order RGBA this way, else, order the data this way. Since "bla" doesn't appear to be defined within the file locally, there's the question of what order is the data stored in?
Peter
PS: "bla" is a place holder and does not represent actual implemented C++ U++ code.
[Updated on: Wed, 03 May 2017 04:52] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon May 05 19:28:08 CEST 2025
Total time taken to generate the page: 0.00766 seconds
|