Changes between Version 4 and Version 5 of GraphicsApi
- Timestamp:
- Aug 23, 2007, 10:06:50 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GraphicsApi
v4 v5 5 5 The only constraints on this program are: 6 6 7 * If invoked with --fullscreen, it must open a full-screen borderless window, and must exit when mouse or keyboard input occurs.8 * If not invoked with --fullscreen, it must open a standard window; in this case it may handle mouse/keyboard input.7 * If invoked with `--fullscreen`, it must open a full-screen borderless window, and must exit when mouse or keyboard input occurs. 8 * If not invoked with `--fullscreen`, it must open a standard window; in this case it may handle mouse/keyboard input. 9 9 10 10 The BOINC graphics API (described below) provides cross-platform support for … … 20 20 == The BOINC Graphics API == 21 21 22 BOINC supplies a library (libboinc_graphics2.a) that makes it easy 23 to develop graphics apps. 22 BOINC supplies a library (libboinc_graphics2.a) that makes it easy to develop graphics apps. 24 23 To use this library, the graphics app must call 25 24 {{{ … … 49 48 void* boinc_graphics_get_shmem(char* appname); 50 49 }}} 51 boinc_graphics_make_shmem() (called from the main app) creates a shared memory segment 52 of the given size. 'appname' should be the name of this application 53 (used to ensure uniqueness of the shared-memory segment name). 54 boinc_graphics_get_shmem() (called from the graphics app) attaches to an existing segment. 50 `boinc_graphics_make_shmem()` (called from the main app) creates a shared memory segment of the given size. 'appname' should be the name of this application (used to ensure uniqueness of the shared-memory segment name). `boinc_graphics_get_shmem()` (called from the graphics app) attaches to an existing segment. 55 51 56 52 The contents of the shared memory segment are up to you. … … 65 61 }}} 66 62 67 update_time:: the time of day when this structure was last modified. This can be used to implement a 'heartbeat' mechanism so that the graphics app will exit if the main app dies.68 fraction_done:: the last fraction done reported by the main app.69 cpu_time:: the last CPU time reported by the main app.70 status:: the BOINC status. If the 'suspended' flag is set, the graphics app should stop changing its display, and simply display an "application suspended" message.63 update_time:: The time of day when this structure was last modified. This can be used to implement a 'heartbeat' mechanism so that the graphics app will exit if the main app dies. 64 fraction_done:: The last fraction done reported by the main app. 65 cpu_time:: The last CPU time reported by the main app. 66 status:: The BOINC status. If the 'suspended' flag is set, the graphics app should stop changing its display, and simply display an "application suspended" message.