karbon

art_render_pattern.h
1/*
2 * art_render_pattern.h:
3 *
4 * Libart_LGPL - library of basic graphic primitives
5 * Copyright (C) 2000 Raph Levien
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Library General Public License for more details.
16 *
17 * You should have received a copy of the GNU Library General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301, USA.
21 *
22 */
23
24#ifndef __ART_RENDER_PATTERN_H__
25#define __ART_RENDER_PATTERN_H__
26
27#ifdef LIBART_COMPILATION
28#include "art_filterlevel.h"
29#include "art_render.h"
30#else
31#include <libart_lgpl/art_filterlevel.h>
32#include <libart_lgpl/art_render.h>
33#endif
34
35#ifdef __cplusplus
36extern "C" {
37#endif /* __cplusplus */
38
39typedef struct _ArtPattern ArtPattern;
40
41struct _ArtPattern {
42 unsigned int twidth; /* width of tile */
43 unsigned int theight; /* height of tile */
44 art_u8 opacity; /* opacity level */
45 double angle;
46 art_u8 *buffer; /* image source */
47};
48
49void
50art_render_pattern (ArtRender *render,
51 const ArtPattern *pattern,
52 ArtFilterLevel level);
53
54#ifdef __cplusplus
55}
56#endif /* __cplusplus */
57
58#endif /* __ART_RENDER_PATTERN_H__ */