rastpic.h 2.2 KB
Newer Older
M
Ming, Bai 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/***************************************************************************/
/*                                                                         */
/*  rastpic.h                                                              */
/*                                                                         */
/*    The FreeType position independent code services for raster module.   */
/*                                                                         */
/*  Copyright 2009 by                                                      */
/*  Oran Agra and Mickey Gabel.                                            */
/*                                                                         */
/*  This file is part of the FreeType project, and may only be used,       */
/*  modified, and distributed under the terms of the FreeType project      */
/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
/*  this file you indicate that you have read the license and              */
/*  understand and accept it fully.                                        */
/*                                                                         */
/***************************************************************************/


#ifndef __RASTPIC_H__
#define __RASTPIC_H__

G
Grissiom 已提交
22

M
Ming, Bai 已提交
23 24 25 26
FT_BEGIN_HEADER

#include FT_INTERNAL_PIC_H

G
Grissiom 已提交
27

M
Ming, Bai 已提交
28
#ifndef FT_CONFIG_OPTION_PIC
G
Grissiom 已提交
29 30

#define FT_STANDARD_RASTER_GET  ft_standard_raster
M
Ming, Bai 已提交
31 32 33

#else /* FT_CONFIG_OPTION_PIC */

G
Grissiom 已提交
34
  typedef struct  RasterPIC_
M
Ming, Bai 已提交
35
  {
G
Grissiom 已提交
36 37 38
    int              ref_count;
    FT_Raster_Funcs  ft_standard_raster;

M
Ming, Bai 已提交
39 40
  } RasterPIC;

G
Grissiom 已提交
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58

#define GET_PIC( lib )                                    \
          ( (RasterPIC*)( (lib)->pic_container.raster ) )
#define FT_STANDARD_RASTER_GET  ( GET_PIC( library )->ft_standard_raster )


  /* see rastpic.c for the implementation */
  void
  ft_raster1_renderer_class_pic_free( FT_Library  library );

  void
  ft_raster5_renderer_class_pic_free( FT_Library  library );

  FT_Error
  ft_raster1_renderer_class_pic_init( FT_Library  library );

  FT_Error
  ft_raster5_renderer_class_pic_init( FT_Library  library );
M
Ming, Bai 已提交
59 60 61 62 63 64 65 66 67 68 69

#endif /* FT_CONFIG_OPTION_PIC */

 /* */

FT_END_HEADER

#endif /* __RASTPIC_H__ */


/* END */