Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Being able to load a pixel as an int is the reason 32-bit RGB is used more often as a pixel format than 24-bit.

No: RGBA.



Nope. Even 24-bit RGB with no alpha is stored with a wasted byte in video memory these days. (outside of legacy video modes) The reason is alignment.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: