瀏覽代碼

Remove circle

Kenneth van Ewijk 9 年之前
父節點
當前提交
5de58e6f74
共有 1 個文件被更改,包括 0 次插入14 次删除
  1. 0 14
      Enemy.cpp

+ 0 - 14
Enemy.cpp

@@ -43,20 +43,6 @@ Enemy::~Enemy()
 void Enemy::draw()
 void Enemy::draw()
 {
 {
 	Entity::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)
 void Enemy::inEyeSight(Vec3f & TargetPosition)