/* []----------------------------------------[] | Bionc.inc | []----------------------------------------[] | | | AUTHOR: MFSomers 2005. | | USE: All boinc stuff for main | | code ready to be | | included if needed ... | | | []----------------------------------------[] */ // Copyright (C) 2005 M.F. Somers, Theoretical Chemistry Department, Leiden University // // This 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. // // http://www.gnu.org/licenses/gpl.txt // system specific BOINC includes #if defined(__linux__) #elif defined(_WIN32) || defined(WIN32) # include "boinc_win.h" #elif defined(__APPLE__) #else # error No BOINC support for this platform ... #endif // general BOINC includes #include "diagnostics.h" #include "boinc_api.h" #include "filesys.h" #include "util.h" #include "version.h" // BOINC graphical includes #if defined(USE_BOINC_GRAPH_API) // system specific BOINC graphical includes # if defined(__linux__) # include "glut.h" # elif defined(_WIN32) || defined(WIN32) # elif defined(__APPLE__) # include "glut.h" # else # error No GRAPHICAL BOINC support for this platform ... # endif # include "graphics_api.h" /* ----------------------------------------------------------------------- */ /* Called when the screen is resized */ void app_graphics_resize( int Width, int Height ) { // ... // ... // ... } /* ----------------------------------------------------------------------- */ /* Called when to render the scene */ void app_graphics_render( int X, int Y, double TimeOfDay ) { // ... // ... // ... } /* ----------------------------------------------------------------------- */ /* Called at graphical setup */ void app_graphics_init( void ) { // ... // ... // ... } /* ----------------------------------------------------------------------- */ /* Called when preferences change */ void app_graphics_reread_prefs( void ) { // ... // ... // ... } /* ----------------------------------------------------------------------- */ /* Called when mouse is moved */ void boinc_app_mouse_move( int MousePosX, int MousePosY, int LeftButton, int MiddleButton, int RightButton ) { // ... // ... // ... } /* ----------------------------------------------------------------------- */ /* Called when button is hit */ void boinc_app_mouse_button( int X, int Y, int Which, int IsDown ) { // ... // ... // ... } /* ----------------------------------------------------------------------- */ /* Called on key press */ void boinc_app_key_press( int Key1, int Key2 ) { // ... // ... // ... } /* ----------------------------------------------------------------------- */ /* Called when key released */ void boinc_app_key_release( int Key1, int Key2 ) { // ... // ... // ... } #endif