| OLD | NEW |
| 1 /***************************************************************************/ | 1 /***************************************************************************/ |
| 2 /* */ | 2 /* */ |
| 3 /* rastpic.h */ | 3 /* rastpic.h */ |
| 4 /* */ | 4 /* */ |
| 5 /* The FreeType position independent code services for raster module. */ | 5 /* The FreeType position independent code services for raster module. */ |
| 6 /* */ | 6 /* */ |
| 7 /* Copyright 2009 by */ | 7 /* Copyright 2009 by */ |
| 8 /* Oran Agra and Mickey Gabel. */ | 8 /* Oran Agra and Mickey Gabel. */ |
| 9 /* */ | 9 /* */ |
| 10 /* This file is part of the FreeType project, and may only be used, */ | 10 /* This file is part of the FreeType project, and may only be used, */ |
| 11 /* modified, and distributed under the terms of the FreeType project */ | 11 /* modified, and distributed under the terms of the FreeType project */ |
| 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ | 12 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ |
| 13 /* this file you indicate that you have read the license and */ | 13 /* this file you indicate that you have read the license and */ |
| 14 /* understand and accept it fully. */ | 14 /* understand and accept it fully. */ |
| 15 /* */ | 15 /* */ |
| 16 /***************************************************************************/ | 16 /***************************************************************************/ |
| 17 | 17 |
| 18 | 18 |
| 19 #ifndef __RASTPIC_H__ | 19 #ifndef __RASTPIC_H__ |
| 20 #define __RASTPIC_H__ | 20 #define __RASTPIC_H__ |
| 21 | 21 |
| 22 | 22 |
| 23 FT_BEGIN_HEADER | 23 FT_BEGIN_HEADER |
| 24 | 24 |
| 25 #include FT_INTERNAL_PIC_H | 25 #include FT_INTERNAL_PIC_H |
| 26 | 26 |
| 27 |
| 27 #ifndef FT_CONFIG_OPTION_PIC | 28 #ifndef FT_CONFIG_OPTION_PIC |
| 28 #define FT_STANDARD_RASTER_GET ft_standard_raster | 29 |
| 30 #define FT_STANDARD_RASTER_GET ft_standard_raster |
| 29 | 31 |
| 30 #else /* FT_CONFIG_OPTION_PIC */ | 32 #else /* FT_CONFIG_OPTION_PIC */ |
| 31 | 33 |
| 32 typedef struct RasterPIC_ | 34 typedef struct RasterPIC_ |
| 33 { | 35 { |
| 34 int ref_count; | 36 int ref_count; |
| 35 FT_Raster_Funcs ft_standard_raster; | 37 FT_Raster_Funcs ft_standard_raster; |
| 38 |
| 36 } RasterPIC; | 39 } RasterPIC; |
| 37 | 40 |
| 38 #define GET_PIC(lib) ((RasterPIC*)((lib)->pic_container.raster)) | 41 |
| 39 #define FT_STANDARD_RASTER_GET (GET_PIC(library)->ft_standard_raster) | 42 #define GET_PIC( lib ) \ |
| 43 ( (RasterPIC*)( (lib)->pic_container.raster ) ) |
| 44 #define FT_STANDARD_RASTER_GET ( GET_PIC( library )->ft_standard_raster ) |
| 45 |
| 40 | 46 |
| 41 /* see rastpic.c for the implementation */ | 47 /* see rastpic.c for the implementation */ |
| 42 void | 48 void |
| 43 ft_raster1_renderer_class_pic_free( FT_Library library ); | 49 ft_raster1_renderer_class_pic_free( FT_Library library ); |
| 44 | 50 |
| 45 void | 51 void |
| 46 ft_raster5_renderer_class_pic_free( FT_Library library ); | 52 ft_raster5_renderer_class_pic_free( FT_Library library ); |
| 47 | 53 |
| 48 FT_Error | 54 FT_Error |
| 49 ft_raster1_renderer_class_pic_init( FT_Library library ); | 55 ft_raster1_renderer_class_pic_init( FT_Library library ); |
| 50 | 56 |
| 51 FT_Error | 57 FT_Error |
| 52 ft_raster5_renderer_class_pic_init( FT_Library library ); | 58 ft_raster5_renderer_class_pic_init( FT_Library library ); |
| 53 | 59 |
| 54 #endif /* FT_CONFIG_OPTION_PIC */ | 60 #endif /* FT_CONFIG_OPTION_PIC */ |
| 55 | 61 |
| 56 /* */ | 62 /* */ |
| 57 | 63 |
| 58 FT_END_HEADER | 64 FT_END_HEADER |
| 59 | 65 |
| 60 #endif /* __RASTPIC_H__ */ | 66 #endif /* __RASTPIC_H__ */ |
| 61 | 67 |
| 62 | 68 |
| 63 /* END */ | 69 /* END */ |
| OLD | NEW |