Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
blob: 6bdf34c7651ea05b5c73e83819ffdc2a87576758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* stardrawer.cc
   This file is part of the Osirion project and is distributed under 
   the terms and conditions of the GNU General Public License version 2 
*/

#include "gl/osiriongl.h"
#include "stardrawer.h"

StarDrawer::StarDrawer(Star *s) {
	star = s;
	sphere.radius = s->radius;
	
}
StarDrawer::~StarDrawer() {
	star = 0;
}

void StarDrawer::draw(float elapsed)
{
	gl::color(star->color);
	sphere.draw();
}