blob: 88c0fb05ae584df23cdec71b153c19703aaaac6f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#pragma once
#include "resource.h"
#include <SDL_render.h>
#include <SDL_surface.h>
#include <string>
class Texture : public Resource {
public:
Texture(const std::string& path);
~Texture();
void setTexture(SDL_Renderer& renderer);
SDL_Surface* getSurface() const;
SDL_Texture* getTexture() const;
private:
SDL_Surface* m_surface;
SDL_Texture* m_texture;
};
|