blob: 93617e6eba956ed8f704c157afd3cbe242633177 (
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;
};
|