Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-06 23:27:31 +0000
committerStijn Buys <ingar@osirion.org>2008-03-06 23:27:31 +0000
commite0e457510bdd59bbbc77a4f80611066285d39193 (patch)
treec509478163a14f3159aac2ec36f8d39e1041132c /src/render
parentdf61a28d708c30e3e77d1f739dfb4561c042c89c (diff)
fancy shield
Diffstat (limited to 'src/render')
-rw-r--r--src/render/draw.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index 299e59e..2dbdc6f 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -164,18 +164,26 @@ void draw_entity_controlable(core::EntityControlable *entity)
// draw the shield
gl::color(math::Color(0.0f, 1.0f ,0.0f , 0.5f));
-
+
gl::begin(gl::LineLoop);
+ gl::normal(0, -0.5, -0.5);
gl::vertex(v0);
+ gl::normal(0, 0.5, -0.5);
gl::vertex(v1);
+ gl::normal(0, 0.5, 0.5);
gl::vertex(v2);
+ gl::normal(0, -0.5, 0.5);
gl::vertex(v3);
gl::end();
gl::begin(gl::LineLoop);
+ gl::normal(0, -0.5, -0.5);
gl::vertex(v4);
+ gl::normal(0, 0.5, -0.5);
gl::vertex(v5);
+ gl::normal(0, 0.5, 0.5);
gl::vertex(v6);
+ gl::normal(0, -0.5, 0.5);
gl::vertex(v7);
gl::end();