Code

a hack to prevent the redraw of the entire area when a no-fill ctrlrect is deleted
[inkscape.git] / src / display / nr-filter-specularlighting.h
1 #ifndef __NR_FILTER_SPECULARLIGHTING_H__
2 #define __NR_FILTER_SPECULARLIGHTING_H__
4 /*
5  * feSpecularLighting renderer
6  *
7  * Authors:
8  *   Niko Kiirala <niko@kiirala.com>
9  *   Jean-Rene Reinhard <jr@komite.net>
10  * 
11  * Copyright (C) 2007 authors
12  *
13  * Released under GNU GPL, read the file 'COPYING' for more information
14  */
16 #include <gdk/gdktypes.h>
17 #include "display/nr-light-types.h"
18 #include "display/nr-filter-primitive.h"
19 #include "display/nr-filter-slot.h"
20 #include "libnr/nr-matrix.h"
21 #include "sp-fedistantlight.h"
22 #include "sp-fepointlight.h"
23 #include "sp-fespotlight.h"
24 #include "color.h"
26 namespace NR {
27     
28 class FilterSpecularLighting : public FilterPrimitive {
29 public:
30     union {
31         SPFeDistantLight *distant;
32         SPFePointLight *point;
33         SPFeSpotLight *spot;
34     } light;
35     LightType light_type;
36     gdouble surfaceScale;
37     gdouble specularConstant;
38     gdouble specularExponent;
39     guint32 lighting_color;
40     
41     FilterSpecularLighting();
42     static FilterPrimitive *create();
43     virtual ~FilterSpecularLighting();
44     virtual int render(FilterSlot &slot, Matrix const &trans);
46 private:
47 };
49 } /* namespace NR */
51 #endif /* __NR_FILTER_SPECULARLIGHTING_H__ */
52 /*
53   Local Variables:
54   mode:c++
55   c-file-style:"stroustrup"
56   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
57   indent-tabs-mode:nil
58   fill-column:99
59   End:
60 */
61 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :