illuminated console
authorWolfgang Becker <uafr@gmx.de>
Wed, 9 Aug 2006 13:16:37 +0000 (13:16 +0000)
committerWolfgang Becker <uafr@gmx.de>
Wed, 9 Aug 2006 13:16:37 +0000 (13:16 +0000)
SVN-Revision: 4137

src/console.cpp

index d6b2238..c972a23 100644 (file)
@@ -495,6 +495,12 @@ Console::draw(DrawingContext& context)
     context.draw_text(font.get(), *i, Vector(4, py), LEFT_ALLIGN, layer);
   }
 
+  //add some light. Problem: can be abused as lightsource.
+  context.push_target();
+  context.set_target(DrawingContext::LIGHTMAP);
+  context.draw_filled_rect( Vector( 0 ,0 ), Vector( SCREEN_WIDTH, height), Color( 1, 1, 1) , layer );
+  context.pop_target();
+
   context.pop_transform();
 }