aboutsummaryrefslogtreecommitdiff
path: root/engines/cine/pal.h
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-04-01Add default constructor for Cine::Palette (Creates an invalid, empty palette).Kari Salminen
svn-id: r39793
2009-03-28Cine::Palette: Revamp palette constants so they can be used for e.g. ↵Kari Salminen
allocating a constant sized byte buffer from stack. svn-id: r39728
2009-03-28Cine::Palette: Add constants for normally used palette color counts and byte ↵Kari Salminen
sizes. svn-id: r39726
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-11Cine::Palette: Move color format setting to setColorFormat-method.Kari Salminen
svn-id: r39339
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-10- Fix warningsJohannes Schickel
- Formatting svn-id: r39317
2009-03-10Fix compile of CINE engine.Travis Howell
svn-id: r39312
2009-03-10Palette-class for Cine-engine, WIP: Take 2. Testing, using and documentation ↵Kari Salminen
still TODO. svn-id: r39310
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-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-06-12CINE: Fixed memory leaks in the CINE engineChristopher Page
svn-id: r32677
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
2006-12-03Changed CINE_*_H_ to CINE_*_H for consistency with other engines. (Oh, who am ITorbjörn Andersson
kidding, I'm still testing the SVN change.) svn-id: r24806
2006-03-23uint8 -> byteEugene Sandulenko
svn-id: r21414
2006-02-27cleanupGregory Montoir
svn-id: r20957
2006-02-25- avoid using typedef for structs (it is just not necessary in C++)Max Horn
- added a const/static here and there - started to reduce header dependencies svn-id: r20856
2006-02-25Moved cine engine into namespace CineMax Horn
svn-id: r20851
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