From: Wolfgang Becker Date: Wed, 9 Aug 2006 13:16:37 +0000 (+0000) Subject: illuminated console X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4de64a3362ada35f8a6991ff4dcf5e5e38c1b5d6;p=supertux.git illuminated console SVN-Revision: 4137 --- diff --git a/src/console.cpp b/src/console.cpp index d6b22388c..c972a2311 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -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(); }