00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef PALETTEFADERPROCESS_H_INCLUDED
00020 #define PALETTEFADERPROCESS_H_INCLUDED
00021
00022 #include "Process.h"
00023 #include "PaletteManager.h"
00024 #include "intrinsics.h"
00025
00026 class PaletteFaderProcess : public Process
00027 {
00028 int priority;
00029 sint32 counter;
00030 sint32 max_counter;
00031 sint16 old_matrix[12];
00032 sint16 new_matrix[12];
00033 public:
00034 static PaletteFaderProcess *fader;
00035
00036
00037 ENABLE_RUNTIME_CLASSTYPE();
00038 PaletteFaderProcess();
00039 PaletteFaderProcess(Pentagram::PalTransforms trans, int priority, int frames);
00040 PaletteFaderProcess(uint32 rgba, bool from, int priority, int frames, bool current);
00041 PaletteFaderProcess(sint16 from[12], sint16 to[12], int priority, int frames);
00042 virtual ~PaletteFaderProcess(void);
00043
00044 virtual bool run(const uint32 framenum);
00045
00046 INTRINSIC(I_fadeToPaletteTransform);
00047 INTRINSIC(I_fadeToBlack);
00048 INTRINSIC(I_fadeFromWhite);
00049 INTRINSIC(I_fadeToWhite);
00050 INTRINSIC(I_fadeFromBlack);
00051 INTRINSIC(I_lightningBolt);
00052
00053 bool loadData(IDataSource* ids, uint32 version);
00054 protected:
00055 virtual void saveData(ODataSource* ods);
00056 };
00057
00058
00059 #endif //PALETTEFADERPROCESS_H_INCLUDED