Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Palette attribute per tile
#6
To fully support per-tile palette, you should modify DrawLayerScanline(), DrawLayerScanlineScaling(), DrawLayerScanlineAffine() and DrawLayerScanlinePixelMapping(). Each one is responsible of the different "graphic modes": standard, scaling, affine transformations and pixel mapping.

I'd also implement the following functions:

Code:
// Get pointer to one of slotted palettes:
TLN_Palette TLN_GetSlottedPalette(int index);

// Set slotted palette to specific tile:
void TLN_SetTilePalette(TLN_Tilemap tilemap, int row, int column, int index);

// Remove tile palette (use default one)
void TLN_DisableTilePalette(TLN_Tilemap tilemap, int row, int column);

As you can see, tiles belong to tilemaps, not to layers.
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)