#include "enemy.h" #include #include Enemy::Enemy(const Vector2& initpos, std::vector& stage_patterns) : patterns(stage_patterns) { pos = initpos; texture = new TextureSDL("textures/enemy.png"); patterns.push_back(new BulletPattern1(Vector2(0.5, 0.8))); } void Enemy::update() { } void Enemy::draw() { glPointSize(32.0); glColor4f(1, 1, 1, 1); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture->tex()); glBegin(GL_POINTS); glVertex2f(pos.x, pos.y); glEnd(); glDisable(GL_TEXTURE_2D); }