alternative to using SDL_SetColorKey in SDL 1.2

334 Views Asked by At

I am currently porting a game written in C++ and SDL to the web using Emscripten. The problem is that I'm using legacy SDL instead of SDL2, which means that there are several functions I am using that are not compatible with Emscripten. Once such function is SDL_SetColorKey, which I would normally use to set a color key so that I can use sprite sheets. I am wondering if there is an alternative to SDL_SetColorKey in legacy SDL, something that would allow me to make the background of an image translucent without using SDL_SetColorKey.

0

There are 0 best solutions below