blob: 534c1e6e61165ccec90eb9ca106a7cbc26b808d2 (
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
27
28
29
30
|
/* 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
*/
// projet headers
#include "client/stardrawer.h"
#include "render/render.h"
namespace client {
using namespace render;
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
|