old game engines designate the first color of the image palette as a transparent color. Is there a way to do the same with libGDX?
I tried to load the image and replaced the first pallet color with 0x00000000. however, since the pixels are either opaque or transparent, I don't need alpha values, so I could save a lot of memory by using RGB888 instead of RGBA8888. I am looking through the gdx and opengl documentation for other mixing options and have discovered the Gdx.gl20.glBlendColor function and the SpriteBatch setBlendFunction function. but they only change the values used in the mixing equations.
early:)
source share