karbon
art_render_pattern.h
00001 /* 00002 * art_render_pattern.h: 00003 * 00004 * Libart_LGPL - library of basic graphic primitives 00005 * Copyright (C) 2000 Raph Levien 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Library General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Library General Public 00018 * License along with this library; if not, write to the 00019 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 * Boston, MA 02110-1301, USA. 00021 * 00022 */ 00023 00024 #ifndef __ART_RENDER_PATTERN_H__ 00025 #define __ART_RENDER_PATTERN_H__ 00026 00027 #ifdef LIBART_COMPILATION 00028 #include "art_filterlevel.h" 00029 #include "art_render.h" 00030 #else 00031 #include <libart_lgpl/art_filterlevel.h> 00032 #include <libart_lgpl/art_render.h> 00033 #endif 00034 00035 #ifdef __cplusplus 00036 extern "C" { 00037 #endif /* __cplusplus */ 00038 00039 typedef struct _ArtPattern ArtPattern; 00040 00041 struct _ArtPattern { 00042 unsigned int twidth; /* width of tile */ 00043 unsigned int theight; /* height of tile */ 00044 art_u8 opacity; /* opacity level */ 00045 double angle; 00046 art_u8 *buffer; /* image source */ 00047 }; 00048 00049 void 00050 art_render_pattern (ArtRender *render, 00051 const ArtPattern *pattern, 00052 ArtFilterLevel level); 00053 00054 #ifdef __cplusplus 00055 } 00056 #endif /* __cplusplus */ 00057 00058 #endif /* __ART_RENDER_PATTERN_H__ */