aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.h
blob: 84eeb835ee8753ebb43781adebdbde2f0804e4d8 (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 "Component.h"
#include "api/Color.h"
#include "facade/Texture.h"
#include <cstdint>


namespace crepe::api {

struct flip_settings{
	bool flipX : 1;
	bool flipY : 1;
};
class Sprite : public Component {
	
public:
	Sprite(crepe::Texture& image, const Color& color, const flip_settings& flip ) :  sprite_image(&image), color(color), flip(flip){}
	crepe::Texture* sprite_image;
	Color color;
	flip_settings flip;
	uint8_t sortingLayer;
	uint8_t orderInLayer;


};

}