Hello,
Most of my experimental code takes place in map.cpp, which contains surfaces and such and these call setPixel and getPixel and these are probably setting some palette index somwhere in SDL and such.
What would be an (easy) way for me to get the r,g,b of each palette index inside map.cpp ?
(I tried some getPalette method on the main surface inside map.cpp drawTerrain, but it returned all black colors ? The question is why ? Perhaps because of a fade in on the first few frames or so (during battlescape/battle) ? Or is this palette never set ? Hmmm.... )
Bye,
Skybuck.