From http://www.jwz.org/xscreensaver/xscreensaver-5.35.tar.gz
[xscreensaver] / hacks / glx / dropshadow.h
1 /* dropshadow.h, Copyright (c) 2009 Jens Kilian <jjk@acm.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or
9  * implied warranty.
10  */
11
12 #ifndef __DROPSHADOW_H__
13 #define __DROPSHADOW_H__
14
15 #ifdef HAVE_CONFIG_H
16 # include "config.h"
17 #endif /* HAVE_CONFIG_H */
18
19 #include "xlockmoreI.h"
20
21 /* Initialize drop shadow texture, return a texture ID.
22  */
23 GLuint
24 init_drop_shadow(void);
25
26 /* Draw a drop shadow around a rectangle.
27
28    t                Texture ID (as returned by init_drop_shadow()).
29    x, y, z; w, h    Position (left bottom), depth and size of rectangle.
30    r                Radius of drop shadow.
31
32    The shadow will be drawn using the current color.
33  */
34
35 void
36 draw_drop_shadow (GLuint t,
37                   GLfloat x, GLfloat y, GLfloat z, GLfloat w, GLfloat h,
38                   GLfloat r);
39
40 #endif /* __DROPSHADOW_H__ */