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

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

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

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