From 5de58e6f7471d3a91196210a1efa604c529aa122 Mon Sep 17 00:00:00 2001 From: Kenneth van Ewijk Date: Wed, 22 Jun 2016 02:35:34 +0200 Subject: [PATCH] Remove circle --- Enemy.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Enemy.cpp b/Enemy.cpp index 3f13f6f..2a5bc04 100644 --- a/Enemy.cpp +++ b/Enemy.cpp @@ -43,20 +43,6 @@ Enemy::~Enemy() void Enemy::draw() { Entity::draw(); - glPushMatrix(); - - glTranslatef(position.x, position.y, position.z); - - glBegin(GL_LINE_LOOP); - for (int i = 0; i < 360; i++) - { - //convert degrees into radians - float degInRad = i*(M_PI / 180.0); - glVertex3f(cos(degInRad)*radius, 1*scale,sin(degInRad)*radius); - } - glEnd(); - - glPopMatrix(); } void Enemy::inEyeSight(Vec3f & TargetPosition)