mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
world-wide commit to ruin everything
This commit is contained in:
parent
fbce36a05c
commit
8a073e4e8a
57 changed files with 1433 additions and 958 deletions
17
src/graphics/Sprite.cpp
Normal file
17
src/graphics/Sprite.cpp
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include "Sprite.h"
|
||||
|
||||
#include "Texture.h"
|
||||
|
||||
Sprite::Sprite(glm::vec2 position, glm::vec2 size, Texture* texture)
|
||||
: position(position),
|
||||
size(size),
|
||||
origin(0.5f, 0.5f),
|
||||
color(1.0f, 1.0f, 1.0f, 1.0f),
|
||||
angle(0.0f),
|
||||
texture(texture),
|
||||
region() {
|
||||
}
|
||||
|
||||
Sprite::~Sprite() {
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue