2 # Script generating GP_Pixel_Blit.gen.c and GP_Pixel_Blit.gen.h
3 # 2011 - Tomas Gavenciak <gavento@ucw.cz>
5 from pixeltype
import *
7 from gen_utils
import *
16 descr
= "specialized blit functions and macros",
17 authors
= ["2011 - Tomas Gavenciak <gavento@ucw.cz>"],
19 hdef
= "GP_PIXEL_BLIT_GEN_H")
21 c
.append('#include <stdio.h>\n')
22 c
.append('#include <string.h>\n')
23 c
.append('#include "GP_Pixel.h"\n')
24 c
.append('#include "GP.h"\n')
25 c
.append('#include "GP_Context.h"\n')
26 c
.append('#include "GP_Blit.gen.h"\n')
29 for bit_endian
in bit_endians
:
30 if (bpp
< 8) or (bit_endian
== bit_endians
[0]):
31 gen_blit_same_t(bpp
, get_size_suffix(bpp
, bit_endian
), h
, c
)
39 if __name__
== '__main__':