#include "enemy.h" #include "texturesdl.h" #include Enemy::Enemy(const Vector2& initpos) { pos = initpos; texture = new TextureSDL("textures/enemy.png"); } 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); }