Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/stardrawer.cc')
-rw-r--r--src/client/stardrawer.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/client/stardrawer.cc b/src/client/stardrawer.cc
new file mode 100644
index 0000000..6bdf34c
--- /dev/null
+++ b/src/client/stardrawer.cc
@@ -0,0 +1,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();
+}