190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/***************************************************************************/ 290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* */ 390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* rastpic.h */ 490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* */ 590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* The FreeType position independent code services for raster module. */ 690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* */ 790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* Copyright 2009 by */ 890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* Oran Agra and Mickey Gabel. */ 990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* */ 1090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* This file is part of the FreeType project, and may only be used, */ 1190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* modified, and distributed under the terms of the FreeType project */ 1290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* license, LICENSE.TXT. By continuing to use, modify, or distribute */ 1390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* this file you indicate that you have read the license and */ 1490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* understand and accept it fully. */ 1590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/* */ 1690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)/***************************************************************************/ 1790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 1890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 1990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#ifndef __RASTPIC_H__ 2090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#define __RASTPIC_H__ 2190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)FT_BEGIN_HEADER 2490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#include "../../include/freetype/internal/ftpic.h" 2690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 2890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#ifndef FT_CONFIG_OPTION_PIC 2990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 3090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#define FT_STANDARD_RASTER_GET ft_standard_raster 3190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 3290dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)#else /* FT_CONFIG_OPTION_PIC */ 3390dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 3490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) typedef struct RasterPIC_ 3590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) { 365e3f23d412006dc4db4e659864679f29341e113fTorne (Richard Coles) int ref_count; 3790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) FT_Raster_Funcs ft_standard_raster; 3890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 3990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) } RasterPIC; 4090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 4190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles) 42#define GET_PIC( lib ) \ 43 ( (RasterPIC*)( (lib)->pic_container.raster ) ) 44#define FT_STANDARD_RASTER_GET ( GET_PIC( library )->ft_standard_raster ) 45 46 47 /* see rastpic.c for the implementation */ 48 void 49 ft_raster1_renderer_class_pic_free( FT_Library library ); 50 51 void 52 ft_raster5_renderer_class_pic_free( FT_Library library ); 53 54 FT_Error 55 ft_raster1_renderer_class_pic_init( FT_Library library ); 56 57 FT_Error 58 ft_raster5_renderer_class_pic_init( FT_Library library ); 59 60#endif /* FT_CONFIG_OPTION_PIC */ 61 62 /* */ 63 64FT_END_HEADER 65 66#endif /* __RASTPIC_H__ */ 67 68 69/* END */ 70