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.

layer.h 780 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // Lol Engine
  3. //
  4. // Copyright: (c) 2010-2011 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 Layer class
  12. // ---------------
  13. // A Layer object is a subset of a Map.
  14. //
  15. #if !defined __LOL_LAYER_H__
  16. #define __LOL_LAYER_H__
  17. #include <stdint.h>
  18. namespace lol
  19. {
  20. class Layer
  21. {
  22. public:
  23. Layer(int w, int h, int z, int o, uint32_t *data);
  24. ~Layer();
  25. int GetZ();
  26. void Render(int x, int y, int z);
  27. private:
  28. int width, height, altitude, orientation;
  29. uint32_t *data;
  30. };
  31. } /* namespace lol */
  32. #endif // __LOL_LAYER_H__