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.
 
 
 

40 lines
892 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. #pragma once
  11. //
  12. // The TileSet class
  13. // -----------------
  14. // A TileSet is a collection of tiles stored in a texture. Texture uploading
  15. // and freeing is done in the render tick method. When the refcount drops to
  16. // zero, the texture is freed.
  17. //
  18. namespace lol
  19. {
  20. class TextureImageData
  21. {
  22. friend class TextureImage;
  23. //T'was protected .... should it be ?
  24. public:
  25. String m_name;
  26. /* Pixels, then texture coordinates */
  27. ivec2 m_image_size, m_texture_size;
  28. Image *m_image = nullptr;
  29. Texture *m_texture = nullptr;
  30. };
  31. } /* namespace lol */