@MtrlImages.h 1.0 KB

1234567891011121314151617181920212223242526
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class MtrlImages
  4. {
  5. bool flip_normal_y;
  6. int tex;
  7. Image color, alpha, bump, normal, specular, glow;
  8. bool create(C VecI2 &size);
  9. void clear();
  10. void compact();
  11. void Export(C Str &name, C Str &ext)C;
  12. static void Crop(Image &image, C Rect &frac);
  13. void crop(C Rect &frac);
  14. void resize(C VecI2 &size);
  15. void fromMaterial(C EditMaterial &material, C Project &proj, bool changed_flip_normal_y, C VecI2 &size=-1, bool process_alpha=false);
  16. uint createBaseTextures(Image &base_0, Image &base_1)C;
  17. void baseTextureSizes(VecI2 *size0, VecI2 *size1);
  18. void processAlpha();
  19. public:
  20. MtrlImages();
  21. };
  22. /******************************************************************************/
  23. /******************************************************************************/
  24. /******************************************************************************/