PaletteFaderProcess.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) 2003-2004  Pentagram Team
00003  *
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (at your option) any later version.
00008  *
00009  *  This program is distributed in the hope that it will be useful,
00010  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  *  GNU General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
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]; // Fixed point -4.11
00032         sint16                                          new_matrix[12];
00033 public:
00034         static PaletteFaderProcess      *fader;
00035 
00036         // p_dynamic_class stuff
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

Generated on Fri Jul 27 22:27:28 2007 for pentagram by  doxygen 1.4.7