pandemonium_engine/modules/props/jobs/prop_texture_job.h

40 lines
684 B
C++
Raw Normal View History

2022-03-17 22:33:22 +01:00
#ifndef PROP_TEXTURE_JOB
#define PROP_TEXTURE_JOB
2023-12-17 22:59:50 +01:00
#include "scene/resources/texture.h"
#include "core/os/thread_pool_job.h"
#include "core/object/reference.h"
#include "modules/modules_enabled.gen.h"
#ifdef MODULE_TEXTURE_PACKER_ENABLED
class TexturePacker;
#endif
class PropTextureJob : public ThreadPoolJob {
GDCLASS(PropTextureJob, ThreadPoolJob);
public:
#ifdef MODULE_TEXTURE_PACKER_ENABLED
Ref<TexturePacker> get_merger();
void set_merger(const Ref<TexturePacker> &merger);
#endif
void _execute();
PropTextureJob();
~PropTextureJob();
protected:
static void _bind_methods();
#ifdef MODULE_TEXTURE_PACKER_ENABLED
Ref<TexturePacker> _merger;
#endif
};
#endif