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.
 
 
 

51 lines
902 B

  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the Do What The Fuck You Want To
  7. // Public License, Version 2, as published by Sam Hocevar. See
  8. // http://www.wtfpl.net/ for more details.
  9. //
  10. //
  11. // The Light class
  12. // ---------------
  13. //
  14. #if !defined __LIGHT_H__
  15. #define __LIGHT_H__
  16. #include "worldentity.h"
  17. namespace lol
  18. {
  19. class Light : public WorldEntity
  20. {
  21. public:
  22. Light();
  23. ~Light();
  24. char const *GetName() { return "<light>"; }
  25. void SetColor(vec4 const &col);
  26. vec4 GetColor();
  27. void SetPosition(vec4 const &pos);
  28. vec4 GetPosition();
  29. protected:
  30. virtual void TickGame(float seconds);
  31. virtual void TickDraw(float seconds);
  32. private:
  33. vec4 m_color;
  34. bool m_directional;
  35. };
  36. } /* namespace lol */
  37. #endif /* __LIGHT_H__ */