Ignore:
Timestamp:
May 19, 2006, 7:44:27 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed caca_set_delay() and caca_get_rendertime() into caca_set_display_time() and caca_get_display_time() for consistency.
Location:
libcaca/trunk/caca
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/caca/caca.h

    r941 r964  
    152152caca_display_t * caca_create_display(cucul_canvas_t *);
    153153void caca_free_display(caca_display_t *);
    154 void caca_set_delay(caca_display_t *, unsigned int);
    155154void caca_refresh_display(caca_display_t *);
    156 unsigned int caca_get_rendertime(caca_display_t *);
     155void caca_set_display_time(caca_display_t *, unsigned int);
     156unsigned int caca_get_display_time(caca_display_t *);
    157157unsigned int caca_get_display_width(caca_display_t *);
    158158unsigned int caca_get_display_height(caca_display_t *);
  • libcaca/trunk/caca/graphics.c

    r859 r964  
    2929 *  the X11 and Win32 drivers.
    3030 *
    31  *  \param dp The libcaca graphical context.
     31 *  \param dp The libcaca display context.
    3232 *  \param title The desired display title.
    3333 *  \return 0 upon success, a non-zero value if an error occurs.
     
    4545 *  6x10 font is being used. Note that the units are not necessarily pixels.
    4646 *
    47  *  \param dp The libcaca graphical context.
     47 *  \param dp The libcaca display context.
    4848 *  \return The display width.
    4949 */
     
    6060 *  used. Note that the units are not necessarily pixels.
    6161 *
    62  *  \param dp The libcaca graphical context.
     62 *  \param dp The libcaca display context.
    6363 *  \return The display height.
    6464 */
     
    7777 *  default behaviour.
    7878 *
    79  *  \param dp The libcaca graphical context.
     79 *  \param dp The libcaca display context.
    8080 *  \param usec The refresh delay in microseconds.
    8181 */
    82 void caca_set_delay(caca_display_t *dp, unsigned int usec)
     82void caca_set_display_time(caca_display_t *dp, unsigned int usec)
    8383{
    8484    dp->delay = usec;
    8585}
    8686
    87 /** \brief Get the average rendering time.
     87/** \brief Get the display's average rendering time.
    8888 *
    8989 *  This function returns the average rendering time, which is the average
    9090 *  measured time between two caca_refresh_display() calls, in microseconds. If
    91  *  constant framerate was activated by calling caca_set_delay(), the average
    92  *  rendering time will not be considerably shorter than the requested delay
    93  *  even if the real rendering time was shorter.
     91 *  constant framerate was activated by calling caca_set_display_time(), the
     92 *  average rendering time will not be considerably shorter than the requested
     93 *  delay even if the real rendering time was shorter.
    9494 *
    95  *  \param dp The libcaca graphical context.
     95 *  \param dp The libcaca display context.
    9696 *  \return The render time in microseconds.
    9797 */
    98 unsigned int caca_get_rendertime(caca_display_t *dp)
     98unsigned int caca_get_display_time(caca_display_t *dp)
    9999{
    100100    return dp->rendertime;
     
    107107 *  called.
    108108 *
    109  *  If caca_set_delay() was called with a non-zero value,
     109 *  If caca_set_display_time() was called with a non-zero value,
    110110 *  caca_refresh_display() will use that value to achieve constant
    111  *  framerate: if two consecutive calls to caca_refresh_display() are
    112  *  within a time range shorter than the value set with caca_set_delay(),
     111 *  framerate: if two consecutive calls to caca_refresh_display() are within
     112 *  a time range shorter than the value set with caca_set_display_time(),
    113113 *  the second call will be delayed before performing the screen refresh.
    114114 *
    115  *  \param dp The libcaca graphical context.
     115 *  \param dp The libcaca display context.
    116116 */
    117117void caca_refresh_display(caca_display_t *dp)
     
    155155 *  support it.
    156156 *
    157  *  \param dp The libcaca graphical context.
     157 *  \param dp The libcaca display context.
    158158 *  \param flag 0 hides the pointer, 1 shows the system's default pointer
    159159 *              (usually an arrow). Other values are reserved for future use.
Note: See TracChangeset for help on using the changeset viewer.