vrshoot
annotate src/scr_overlay.cc @ 2:334d17aed7de
visual studio project files
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Feb 2014 18:36:38 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 #include "scr_overlay.h" |
nuclear@0 | 2 #include "logger.h" |
nuclear@0 | 3 |
nuclear@0 | 4 void OverlayScreen::start() |
nuclear@0 | 5 { |
nuclear@0 | 6 if(!(prev = previous_screen())) { |
nuclear@0 | 7 error_log("Failed to start overlay screen: %s. No previous screen found.\n", get_name()); |
nuclear@0 | 8 } |
nuclear@0 | 9 prev->start(); |
nuclear@0 | 10 } |
nuclear@0 | 11 |
nuclear@0 | 12 void OverlayScreen::stop() |
nuclear@0 | 13 { |
nuclear@0 | 14 prev->stop(); |
nuclear@0 | 15 } |
nuclear@0 | 16 |
nuclear@0 | 17 long OverlayScreen::redisplay_interval() const |
nuclear@0 | 18 { |
nuclear@0 | 19 return prev->redisplay_interval(); |
nuclear@0 | 20 } |
nuclear@0 | 21 |
nuclear@0 | 22 void OverlayScreen::pre_draw() const |
nuclear@0 | 23 { |
nuclear@0 | 24 prev->pre_draw(); |
nuclear@0 | 25 } |
nuclear@0 | 26 |
nuclear@0 | 27 void OverlayScreen::display() const |
nuclear@0 | 28 { |
nuclear@0 | 29 prev->display(); |
nuclear@0 | 30 } |
nuclear@0 | 31 |
nuclear@0 | 32 void OverlayScreen::post_draw() const |
nuclear@0 | 33 { |
nuclear@0 | 34 prev->post_draw(); |
nuclear@0 | 35 } |
nuclear@0 | 36 |
nuclear@0 | 37 void OverlayScreen::keyboard(int key, bool pressed) |
nuclear@0 | 38 { |
nuclear@0 | 39 prev->keyboard(key, pressed); |
nuclear@0 | 40 } |
nuclear@0 | 41 |
nuclear@0 | 42 void OverlayScreen::motion(int x, int y, bool pressed) |
nuclear@0 | 43 { |
nuclear@0 | 44 prev->motion(x, y, pressed); |
nuclear@0 | 45 } |
nuclear@0 | 46 |
nuclear@0 | 47 void OverlayScreen::button(int bn, bool pressed, int x, int y) |
nuclear@0 | 48 { |
nuclear@0 | 49 prev->button(bn, pressed, x, y); |
nuclear@0 | 50 } |
nuclear@0 | 51 |
nuclear@0 | 52 void OverlayScreen::reshape(int x, int y) |
nuclear@0 | 53 { |
nuclear@0 | 54 prev->reshape(x, y); |
nuclear@0 | 55 } |