You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

45 lines
882 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright © 2010—2018 Sam Hocevar <sam@hocevar.net>
  5. //
  6. // Lol Engine is free software. It comes without any warranty, to
  7. // the extent permitted by applicable law. You can redistribute it
  8. // and/or modify it under the terms of the Do What the Fuck You Want
  9. // to Public License, Version 2, as published by the WTFPL Task Force.
  10. // See http://www.wtfpl.net/ for more details.
  11. //
  12. #pragma once
  13. //
  14. // The Gradient class
  15. // ------------------
  16. //
  17. #include "engine/worldentity.h"
  18. namespace lol
  19. {
  20. class GradientData;
  21. class Gradient : public WorldEntity
  22. {
  23. public:
  24. Gradient(vec3 aa, vec3 bb);
  25. virtual ~Gradient();
  26. std::string GetName() const { return "<gradient>"; }
  27. protected:
  28. virtual void tick_game(float seconds);
  29. virtual void tick_draw(float seconds, Scene &scene);
  30. private:
  31. GradientData *data;
  32. };
  33. } /* namespace lol */