aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/pal.cpp
AgeCommit message (Collapse)Author
2009-04-04Add saturatedAddColor-function in which you can specify the added color's ↵Kari Salminen
format (This replaces saturatedAddNormalizedColor). Make colorFormat()-accessor function to return a const reference for speed. svn-id: r39851
2009-04-01Cine::Palette: Add saturatedAddNormalizedColor-function (Going to be used to ↵Kari Salminen
combine FWRenderer's and OSRenderer's transformPalette-functions into one later on). svn-id: r39795
2009-03-28Cine::Palette: Add empty() and isValid() functions.Kari Salminen
svn-id: r39725
2009-03-27Cine::Palette: Add a black palette constructor and a clear-function for ↵Kari Salminen
clearing the palette of all data (Releases used memory etc). svn-id: r39713
2009-03-27Make Cine::Palette use the PixelFormat's convenience functions introduced in ↵Kari Salminen
r39711 (This way I don't have to cache the rMax, gBits etc values and I'm left with less member variables to keep up to date). svn-id: r39712
2009-03-27Cine::Palette: Remove unnecessary and needlessly complicating saving of the ↵Kari Salminen
last loaded palette data's endian type. svn-id: r39710
2009-03-27Cine::Palette: Add setGlobalOSystemPalette-method for setting the global ↵Kari Salminen
OSystem's palette from the Palette object's internal representation. svn-id: r39709
2009-03-25Cine::Palette::saturatedAddNormalizedGray: Use fractional representation ↵Kari Salminen
(dividend/denominator) of the normalized gray value in range [-1, +1] rather than a floating point. svn-id: r39691
2009-03-24Cine::Palette: Add fillWithBlack and saturatedAddNormalizedGray-methods.Kari Salminen
svn-id: r39676
2009-03-16Fix for warnings on trunk-lenny-x86_64-build (Yay \o/ Buildbot!).Kari Salminen
svn-id: r39456
2009-03-16Cine::Palette: Make saturatedAddColor-methods more like their old ↵Kari Salminen
counterparts transformPaletteRange and transformColor. svn-id: r39454
2009-03-16Prefix Cine's endian types with CINE_ so they don't clash with already ↵Kari Salminen
defined LITTLE_ENDIAN and/or BIG_ENDIAN on some platforms. svn-id: r39453
2009-03-16Add endianness handling to Cine::Palette's load and save functions.Kari Salminen
svn-id: r39452
2009-03-14Cine::Palette revamp part 2: Fix save-function, add Cine-palette formats etc.Kari Salminen
- Removed excess convenience functions, made the used palette formats publicly available instead (Cine::kLowPalFormat, Cine::kHighPalFormat etc) - Fixed output conversion i.e. save-functions.. Hopefully they work ;-) - Renamed some parameters for unification (colors -> buf, numBytes -> size) - Added some documentation, e.g. for the load- & save-functions. svn-id: r39405
2009-03-11Fix assertion (Doh! That was supposed to be the other way).Kari Salminen
svn-id: r39344
2009-03-11Cine::Palette: Move color format setting to setColorFormat-method.Kari Salminen
svn-id: r39339
2009-03-11Formatting.Kari Salminen
svn-id: r39338
2009-03-11Add saving in original palette format and the OSystem's palette format to ↵Kari Salminen
Cine::Palette. svn-id: r39337
2009-03-11Add saving functions to Cine::Palette (Now one can output the palette in ↵Kari Salminen
other formats too). svn-id: r39336
2009-03-11Fix assertions in palette loading function to really test that each color ↵Kari Salminen
component fits inside a single byte (Easier to parse that way). svn-id: r39333
2009-03-10- Fix warningsJohannes Schickel
- Formatting svn-id: r39317
2009-03-10Palette-class for Cine-engine, WIP: Take 2. Testing, using and documentation ↵Kari Salminen
still TODO. svn-id: r39310
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-11-20Fixed gcc warning.Johannes Schickel
svn-id: r35137
2008-11-20Fix resizing of the internal color array in Palette-class.Kari Salminen
svn-id: r35136
2008-11-20Add Palette-class for handling 9-bit and 24-bit palettes. WIP!Kari Salminen
svn-id: r35135
2008-11-18Make the 256 color transformPaletteRange-function and Future Wars's ↵Kari Salminen
refreshPalette-function compliant with disassembly. svn-id: r35118
2008-08-11Changed palPtr from a pointer to a Common::Array named palArray. Removed ↵Kari Salminen
palEntriesCount variable as it's now equivalent to palArray.size(). svn-id: r33785
2008-05-24Patch #1969189: "CinE renderer rewrite"Eugene Sandulenko
svn-id: r32257
2007-12-14renamed several structures, variables and functionsGregory Montoir
svn-id: r29860
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-30cleanup, don't rely on assert() to ensure a gamefile/savefile is opened. ↵Gregory Montoir
Also removed the use of Common::File global objects. svn-id: r27021
2007-05-29added code for freePartRange, freePartEntry and freeOverlay (also renamed ↵Gregory Montoir
some functions and variables). svn-id: r27006
2007-02-18Bad hack to make this engine works on PalmOS (compiler still seems to hate ↵Chris Apers
some global objects) svn-id: r25684
2006-03-23uint8 -> byteEugene Sandulenko
svn-id: r21414
2006-03-23Got rid of ASSERT and ASSERT_PTR definesEugene Sandulenko
svn-id: r21412
2006-02-27cleanupGregory Montoir
svn-id: r20957
2006-02-25Some more cine header cleanupMax Horn
svn-id: r20859
2006-02-25Moved cine engine into namespace CineMax Horn
svn-id: r20851
2006-02-23formating codePaweł Kołodziejski
svn-id: r20835
2006-02-23Cleanup to remove duplicate type definesTravis Howell
svn-id: r20821
2006-02-22Initial version of Cinematique engine evo 1.Eugene Sandulenko
svn-id: r20813