21 lines
522 B
C++
21 lines
522 B
C++
#pragma once
|
|
|
|
#include <SDL3/SDL.h>
|
|
#include <SDL3_image/SDL_image.h>
|
|
#include <string>
|
|
#include <utils.hpp>
|
|
#include <renderer/renderer.hpp>
|
|
|
|
namespace Game::Renderer {
|
|
class Texture {
|
|
public:
|
|
Texture(std::string& path, Renderer* renderer, std::string id = "noname");
|
|
Texture(const Texture&);
|
|
Texture& operator=(const Texture&);
|
|
DISABLE_MOVE(Texture);
|
|
~Texture();
|
|
private:
|
|
SDL_Texture* mTex;
|
|
std::string mId;
|
|
};
|
|
} |