tomato-testing/src/sdlrenderer_texture_uploader.hpp

17 lines
434 B
C++
Raw Normal View History

2023-07-26 20:09:57 +02:00
#pragma once
#include "./texture_uploader.hpp"
#include <SDL3/SDL.h>
struct SDLRendererTextureUploader : public TextureUploaderI {
SDL_Renderer* renderer;
SDLRendererTextureUploader(void) = delete;
SDLRendererTextureUploader(SDL_Renderer* renderer_);
~SDLRendererTextureUploader(void) = default;
uint64_t uploadRGBA(const uint8_t* data, uint32_t width, uint32_t height) override;
void destroy(uint64_t tex_id) override;
};