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 */
21 # include <OpenGL/glu.h>
23 #else /* !HAVE_COCOA */
26 #endif /* !HAVE_COCOA */
30 #endif /* HAVE_JWZGLES */
32 /* Initialize drop shadow texture, return a texture ID.
35 init_drop_shadow(void);
37 /* Draw a drop shadow around a rectangle.
39 t Texture ID (as returned by init_drop_shadow()).
40 x, y, z; w, h Position (left bottom), depth and size of rectangle.
41 r Radius of drop shadow.
43 The shadow will be drawn using the current color.
47 draw_drop_shadow (GLuint t,
48 GLfloat x, GLfloat y, GLfloat z, GLfloat w, GLfloat h,
51 #endif /* __DROPSHADOW_H__ */