Closed BBQGiraffe closed 3 years ago
no longer works because I haven't written this into BBQLib yet
I tried to implement this in the newest BBQLib update but they're different on the SDL2 and SFML backends so one of them is broken(probably SDL2)
confirmed that SDL2 is the broken one as SFML imports raw image data just fine
it seems I was converting the frame buffer to a IntPtr incorrectly, the pixels are in the right order but I seem to have mixed up the format
changing from SDL_PIXELFORMAT_RGBA8888 to SDL_PIXELFORMAT_ABGR8888 seems to have fixed it I'm just as confused as you are but I dare not poke the SDL2 spaghetti monster
I think SDL2-CS might be broken because both the image and SFML use RGBA :confused:
SDL_PIXELFORMAT_RGBA8888 works fine on my other computer so I honestly have no idea what's wrong and I'm too tired to care
no longer broken, for now
added in the ability to load images from frame buffers