@TexInfoGetter.h 1.0 KB

1234567891011121314151617181920212223242526272829
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class TexInfoGetter
  4. {
  5. int got_new_data;
  6. Str tex_path;
  7. Memc<UID> tex_to_process;
  8. Memb<UID> tex_to_process1; // need to use 'Memb' to have const_mem_addr, because these can be added on the fly
  9. uintptr thread_id;
  10. ~TexInfoGetter(); // stop processing before deleting other memebers
  11. void stop ();
  12. void stopAndWait();
  13. static int ImageLoad(ImageHeader &header, C Str &name);
  14. static flt ImageSharpness(C Image &image);
  15. static void CalcTexSharpness(UID &tex_id, ptr user, int thread_index);
  16. void getTexSharpnessFromProject();
  17. void savedTex(C UID &tex_id);
  18. public:
  19. TexInfoGetter();
  20. };
  21. /******************************************************************************/
  22. /******************************************************************************/
  23. extern TexInfoGetter TIG;
  24. /******************************************************************************/