/xbmc/visualizations/XBMCProjectM/libprojectM/PerFrameEqn.hpp

http://github.com/xbmc/xbmc · C++ Header · 53 lines · 16 code · 9 blank · 28 comment · 0 complexity · d575373174b6f0000e45112e1285fcf6 MD5 · raw file

  1. /**
  2. * projectM -- Milkdrop-esque visualisation SDK
  3. * Copyright (C)2003-2007 projectM Team
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2.1 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  18. * See 'LICENSE.txt' included within this release
  19. *
  20. */
  21. /**
  22. * $Id$
  23. *
  24. * Per-frame equation
  25. *
  26. * $Log$
  27. */
  28. #ifndef _PER_FRAME_EQN_H
  29. #define _PER_FRAME_EQN_H
  30. #define PER_FRAME_EQN_DEBUG 0
  31. class GenExpr;
  32. class Param;
  33. class PerFrameEqn;
  34. class PerFrameEqn {
  35. public:
  36. int index; /* a unique id for each per frame eqn (generated by order in preset files) */
  37. Param *param; /* parameter to be assigned a value */
  38. GenExpr *gen_expr; /* expression that paremeter is equal to */
  39. PerFrameEqn(int index, Param * param, GenExpr * gen_expr);
  40. ~PerFrameEqn();
  41. /// Evaluate the per frame equation
  42. void evaluate();
  43. };
  44. #endif /** !_PER_FRAME_EQN_H */