// This file is part of CGLib. // // CGLib is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // CGLib is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with CGLib; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // // Copyright 2007 Carlos Martinho #include "UpdateNotifier.h" namespace cg { SINGLETON_IMPLEMENTATION(UpdateNotifier) void UpdateNotifier::update(unsigned long elapsed_millis) { FOR_EACH_LISTENER(update(elapsed_millis)) } }
// // CGLib is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with CGLib; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // // Copyright 2007 Carlos Martinho #include "KeyboardEventNotifier.h" namespace cg { SINGLETON_IMPLEMENTATION(KeyboardEventNotifier) void KeyboardEventNotifier::handleKeyPressed(unsigned char key) { FOR_EACH_LISTENER(onKeyPressed(key)) } void KeyboardEventNotifier::handleKeyReleased(unsigned char key) { FOR_EACH_LISTENER(onKeyReleased(key)) } void KeyboardEventNotifier::handleSpecialKeyPressed(int key) { FOR_EACH_LISTENER(onSpecialKeyPressed(key)) } void KeyboardEventNotifier::handleSpecialKeyReleased(int key) { FOR_EACH_LISTENER(onSpecialKeyReleased(key)) } }
// This file is part of CGLib. // // CGLib is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // CGLib is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with CGLib; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // // Copyright 2007 Carlos Martinho #include "DrawOverlayNotifier.h" namespace cg { SINGLETON_IMPLEMENTATION(DrawOverlayNotifier) void DrawOverlayNotifier::drawOverlay() { FOR_EACH_LISTENER(drawOverlay()) } }
// This file is part of CGLib. // // CGLib is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // CGLib is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with CGLib; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // // Copyright 2007 Carlos Martinho #include "ReshapeEventNotifier.h" namespace cg { SINGLETON_IMPLEMENTATION(ReshapeEventNotifier) void ReshapeEventNotifier::handleReshape(int width, int height) { FOR_EACH_LISTENER(onReshape(width,height)) } }