blob: d5a0f9febdece80e6846314b3bfcdec1a2ca33fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* 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"
namespace client {
StarDrawer::StarDrawer(game::Star *s) {
star = s;
sphere.radius = s->radius;
}
StarDrawer::~StarDrawer() {
star = 0;
}
void StarDrawer::draw(float elapsed)
{
gl::color(star->color);
sphere.draw();
}
} // namespace client
|