cna/include/CNA/Texture2D.h

21 lines
351 B
C
Raw Permalink Normal View History

2025-02-22 21:32:25 +01:00
#ifndef CNA_TEXTURE2D_H
#define CNA_TEXTURE2D_H
#include <SDL3/SDL.h>
namespace CNA {
class Texture2D {
public:
Texture2D(SDL_Renderer* renderer, const char* filePath);
~Texture2D();
SDL_Texture* GetTexture() const { return texture; }
private:
SDL_Texture* texture;
};
}
#endif // CNA_TEXTURE2D_H