Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Palette attribute per tile
#5
(08-09-2022, 02:52 PM)megamarc Wrote: Hi again,

The renderer should know which palette to use for each tile based on the palette index bits, in the same way it knows what graphic to draw based on its tile index bits. To keep backwards compatibility, an additional bit may be set to tell if the palette index bits are valid, or it should use the default layer palette instead (default behavior).

The SDL library is unrelated to the renderer and its palette management. It is used to create a window, process input and present the rendered framebuffer.

Regards,

So if I understand well, I'll have to modify the DrawLayerScanline() function to make the engine using palette attribute per tile?
Edit : For backwards compatibility, I think I'll use a flag that allows to switch between the original Tilengine behavior (palette per layer) and the new one (palette per tile)
Reply


Messages In This Thread
Palette attribute per tile - by System64 - 08-08-2022, 05:40 PM
RE: Palette attribute per tile - by megamarc - 08-09-2022, 01:18 AM
RE: Palette attribute per tile - by System64 - 08-09-2022, 01:51 AM
RE: Palette attribute per tile - by megamarc - 08-09-2022, 02:52 PM
RE: Palette attribute per tile - by System64 - 08-09-2022, 08:50 PM
RE: Palette attribute per tile - by megamarc - 08-10-2022, 03:28 PM
RE: Palette attribute per tile - by System64 - 08-10-2022, 05:02 PM
RE: Palette attribute per tile - by megamarc - 08-10-2022, 07:54 PM
RE: Palette attribute per tile - by System64 - 08-10-2022, 08:52 PM
RE: Palette attribute per tile - by System64 - 08-11-2022, 06:22 AM
RE: Palette attribute per tile - by megamarc - 08-11-2022, 04:11 PM
RE: Palette attribute per tile - by System64 - 08-11-2022, 04:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)