"Initial commit to Gerrit"
[profile/ivi/cogl.git] / cogl / cogl-clip-state.h
1 /*
2  * Cogl
3  *
4  * An object oriented GL/GLES Abstraction/Utility Layer
5  *
6  * Copyright (C) 2007,2008,2009,2010 Intel Corporation.
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20  *
21  *
22  */
23
24 #if !defined(__COGL_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
25 #error "Only <cogl/cogl.h> can be included directly."
26 #endif
27
28 #ifndef __COGL_CLIP_STATE_H
29 #define __COGL_CLIP_STATE_H
30
31 #include <cogl/cogl-types.h>
32
33 G_BEGIN_DECLS
34
35 /**
36  * cogl_clip_push_from_path:
37  *
38  * Sets a new clipping area using the current path. The current path
39  * is then cleared. The clipping area is intersected with the previous
40  * clipping area. To restore the previous clipping area, call
41  * cogl_clip_pop().
42  *
43  * Since: 1.0
44  */
45 void
46 cogl_clip_push_from_path (void);
47
48 G_END_DECLS
49
50 #endif /* __COGL_CLIP_STATE_H */