diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-06 23:27:31 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-06 23:27:31 +0000 |
commit | e0e457510bdd59bbbc77a4f80611066285d39193 (patch) | |
tree | c509478163a14f3159aac2ec36f8d39e1041132c /src/render | |
parent | df61a28d708c30e3e77d1f739dfb4561c042c89c (diff) |
fancy shield
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/draw.cc | 10 |
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(); |