1 /* fps, Copyright (c) 2001-2008 Jamie Zawinski <jwz@jwz.org>
2 * Draw a frames-per-second display (Xlib and OpenGL).
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation. No representations are made about the suitability of this
9 * software for any purpose. It is provided "as is" without express or
13 #ifndef __XSCREENSAVER_FPS_H__
14 # define __XSCREENSAVER_FPS_H__
18 #endif /* HAVE_CONFIG_H */
20 typedef struct fps_state fps_state;
22 extern fps_state *fps_init (Display *, Window);
23 extern void fps_free (fps_state *);
24 extern void fps_slept (fps_state *, unsigned long usecs);
25 extern double fps_compute (fps_state *, unsigned long polys);
26 extern void fps_draw (fps_state *);
28 #endif /* __XSCREENSAVER_FPS_H__ */