Help with texture colors


#1

I am not sure if what could be causing this error, but when I create a texture the colors are wrong. I output the image data to a ppm to see if maybe my rbg data was wrong going but the ppm is ok.


#2

I fixed it. I reversed the order of my rgb values in the buffer and the color comes out fine


#3

Yes. There are actually several different formats for color integers in computer programming. You’ve found the difference between ARGB and RGBA.