Changes between Version 4 and Version 5 of GraphicsApi


Ignore:
Timestamp:
Aug 23, 2007, 10:06:50 AM (17 years ago)
Author:
Nicolas
Comment:

Some formatting; added tags

Legend:

Unmodified
Added
Removed
Modified
  • GraphicsApi

    v4 v5  
    55The only constraints on this program are:
    66
    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.
    99
    1010The BOINC graphics API (described below) provides cross-platform support for
     
    2020== The BOINC Graphics API ==
    2121
    22 BOINC supplies a library (libboinc_graphics2.a) that makes it easy
    23 to develop graphics apps.
     22BOINC supplies a library (libboinc_graphics2.a) that makes it easy to develop graphics apps.
    2423To use this library, the graphics app must call
    2524{{{
     
    4948void* boinc_graphics_get_shmem(char* appname);
    5049}}}
    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.
    5551
    5652The contents of the shared memory segment are up to you.
     
    6561}}}
    6662
    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.