(06-17-2023, 02:06 AM)megamarc Wrote: Hi!Hi!
I see, you're displaying a direct color 16 bpp image (at least). For doing this, Tilengine doesn't have anything special to offer. As you're not using any feature like raster effects, layer composition or animation, I'd just use plain SDL2 to create a 32-bit streaming texture and blit video frames onto it:
https://wiki.libsdl.org/SDL2/SDL_CreateTexture
I use raster effects in a clever way.
I have a long tile that is 256x8. it has 256 vertical lines, each line is one color, so this tile has 256 colors.
I fill the screen with this tile and then I change the palette at every scanline.
So you have 224 palettes of 256 colors, each palette entry corresponds to one pixel.