aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shooter/bullet.cpp
blob: 55ce3f6e322f311346e1b40619c0c3564f82ae72 (plain)
1
2
3
4
5
6
7
8
#include "bullet.h"

Bullet::Bullet(const glm::vec4 &bound) : bound_(bound) {}

void Bullet::draw(yage::SpriteBatch &sp) const
{
    sp.draw(bound_, {0, 0, 1, 1}, yage::ResourceManager::getTexture("examples/resources/bullet.png").id, yage::Colour(255, 255, 255, 255), 0);
}