blob: 3af934109054805ba4028532d0787775f86ad30a (
plain) (
blame)
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
29
30
31
32
33
|
#ifndef SPRITE_H_70503825
#define SPRITE_H_70503825
#include <string_view>
#include "renderer.h"
class Sprite {
public:
Sprite(std::string_view filename, Renderer& renderer);
int getTextureId() const {
return textureId_;
}
int getX() { return x_; }
int getY() { return y_; }
int getWidth() { return width_; }
int getHeight() { return height_; }
private:
int textureId_;
int x_ = 0;
int y_ = 0;
int width_ = 17*4;
int height_ = 27*4;
};
#endif /* end of include guard: SPRITE_H_70503825 */
|