image-obj.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
  2. /*
  3. * image-obj.h
  4. * Copyright (C) 2016 Fran??ois Gautrais <francois@gautrais.eu>
  5. *
  6. * histodex is free software: you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * histodex is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. * See the GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef _IMAGE_OBJ_H_
  20. #define _IMAGE_OBJ_H_
  21. #include <iostream>
  22. #include <string>
  23. class Generator;
  24. class ImageObj
  25. {
  26. public:
  27. ImageObj(const std::string& image, const std::string& dir, const std::string& name, Generator* g);
  28. virtual ~ImageObj();
  29. void generate();
  30. protected:
  31. std::string m_name;
  32. std::string m_image;
  33. std::string m_dir;
  34. std::string m_texture;
  35. std::string m_obj;
  36. std::string m_mtl;
  37. std::string m_image_out;
  38. std::string m_dir_raw;
  39. std::string m_dir_drawable;
  40. Generator* m_gen;
  41. protected:
  42. void generateObj();
  43. void generateMtl();
  44. void generateTexture();
  45. void generateImage();
  46. private:
  47. };
  48. #endif // _IMAGE_OBJ_H_