tomato-testing/src/texture_uploader.hpp

16 lines
357 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"};
2023-07-26 20:09:57 +02:00
virtual ~TextureUploaderI(void) {}
//virtual uint64_t uploadRGBA(const uint8_t* data, uint64_t data_size) = 0;
virtual uint64_t uploadRGBA(const uint8_t* data, uint32_t width, uint32_t height) = 0;
virtual void destroy(uint64_t tex_id) = 0;
};