25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

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