tomato/src/texture_uploader.hpp

20 lines
345 B
C++
Raw Normal View History

2023-07-26 20:09:57 +02:00
#pragma once
#include <cstdint>
struct TextureUploaderI {
2024-01-18 00:32:11 +01:00
static constexpr const char* version {"1"};
enum Filter {
NEAREST,
LINEAR,
};
2023-07-26 20:09:57 +02:00
virtual ~TextureUploaderI(void) {}
virtual uint64_t uploadRGBA(const uint8_t* data, uint32_t width, uint32_t height, Filter filter = LINEAR) = 0;
2023-07-26 20:09:57 +02:00
virtual void destroy(uint64_t tex_id) = 0;
};