[DiscordArchive] and what does those represent ?
[DiscordArchive] and what does those represent ?
Archived author: A2 • Posted: 2021-03-14T22:12:53.091000+00:00
Original source
and what does those represent ?
Archived author: A2 • Posted: 2021-03-14T22:12:54.314000+00:00
Original source
![[Image: unknown.png?ex=690c74a5&is=690b2325&hm=9...86d5b36a9&]](https://cdn.discordapp.com/attachments/408013572430626817/820781561091063838/unknown.png?ex=690c74a5&is=690b2325&hm=95146cf13b91a66c451084a79bcfab9606806aa86ab867a798d2c8386d5b36a9&)
Archived author: schlumpf • Posted: 2021-03-14T22:14:38.891000+00:00
Original source
number of bits dedicated to the variable.
https://en.cppreference.com/w/cpp/language/bit_field
the first three bits are rotation, the next three are speed, then one bit to toggle animation on, one for overbright, …
[Embed: bit field]
https://en.cppreference.com/w/cpp/language/bit_field
Archived author: schlumpf • Posted: 2021-03-14T22:14:49.656000+00:00
Original source
The last 19 are "these are not used"
Archived author: A2 • Posted: 2021-03-14T22:15:11.665000+00:00
Original source
So animation rotations give it 3 bits
Archived author: A2 • Posted: 2021-03-14T22:15:35.459000+00:00
Original source
it does same as if I would for example had flags 0x1 : 1 and 0x2 : 1 and then enabled both ?
Archived author: A2 • Posted: 2021-03-14T22:17:24.472000+00:00
Original source
hm no
Archived author: A2 • Posted: 2021-03-14T22:17:28.168000+00:00
Original source
looking at the example
Archived author: A2 • Posted: 2021-03-14T22:17:57.213000+00:00
Original source
its more like flag 0x1:1 + 0x2:1 + 0x4:1
Archived author: A2 • Posted: 2021-03-14T22:19:47.546000+00:00
Original source
each tick is 45° i guess by tick they mean each bit