aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Sprite.cpp
blob: 806f1472409a8e23139bee31c630c93814788210 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <cstdint>
#include <memory>

#include "api/Texture.h"
#include "util/log.h"

#include "Component.h"
#include "Sprite.h"

using namespace std;
using namespace crepe;
using namespace crepe::api;

Sprite::Sprite(uint32_t id, shared_ptr<Texture> image, const Color & color,
			   const FlipSettings & flip)
	: Component(id), color(color), flip(flip), sprite_image(image) {
	dbg_trace();
}

Sprite::~Sprite() { dbg_trace(); }