with RGB888. Does sdl2 interprets uint8 integers in some other weird way? I have a render function which renders an image and fills a buffer. This buffer is put into a SDL_texture and rendered in sdl canvas and the colors look yellowish and then I take those same bytes write them to disk in ppm format and open it in feh and colors look sky blueish(which is what should it look like in sdl2). I googled for this behaviour and found this on stackoverflow(https://stackoverflow.com/questions/6288267/colors-are-off-in-sdl-program) but it's not particularly useful.
I was wondering if there is something I'd need to do to make it look right
Обсуждают сегодня