1 /* dropshadow.h, Copyright (c) 2009 Jens Kilian <jjk@acm.org>
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
12 #ifndef __DROPSHADOW_H__
13 #define __DROPSHADOW_H__
17 #endif /* HAVE_CONFIG_H */
19 #include "xlockmoreI.h"
21 /* Initialize drop shadow texture, return a texture ID.
24 init_drop_shadow(void);
26 /* Draw a drop shadow around a rectangle.
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.
32 The shadow will be drawn using the current color.
36 draw_drop_shadow (GLuint t,
37 GLfloat x, GLfloat y, GLfloat z, GLfloat w, GLfloat h,
40 #endif /* __DROPSHADOW_H__ */