home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD v1.2 / amidev_cd_12.iso / devcon / milan_1991 / devcon91.2 / tiga / include / clib / a2410_protos.h
C/C++ Source or Header  |  1992-09-01  |  12KB  |  408 lines

  1. typedef    struct 
  2. {
  3.    short x,y;
  4. } POINT;
  5.  
  6. int install_rlm(void *Unit,char *filename, ULONG *ModuleStart);
  7.  
  8.  
  9. /* Prototypes for functions defined in a2410.c */
  10. void bitblt(short w,
  11.             short h,
  12.             short xs,
  13.             short ys,
  14.             short xd,
  15.             short yd);
  16. int cd_is_alive(void);
  17. void clear_frame_buffer(long color);
  18. void clear_page(long color);
  19. void clear_screen(unsigned long color);
  20. void cop2gsp(short copid,
  21.              long copaddr,
  22.              long gspaddr,
  23.              long length);
  24. short cpw(short x,
  25.           short y);
  26. int create_alm(char *rlm_name,
  27.                char *alm_name);
  28. short create_esym(void);
  29. int delete_font(short id);
  30. void dma16_gsp2gsp(int a,
  31.                    int b,
  32.                    int c,
  33.                    int d);
  34. void dma_gsp2hostxy(unsigned long saddr,
  35.                     unsigned long sptch,
  36.                     unsigned long daddr,
  37.                     unsigned long dptch,
  38.                     short sx,
  39.                     short sy,
  40.                     short dx,
  41.                     short dy,
  42.                     short xext,
  43.                     short yext,
  44.                     short psize,
  45.                     short swap);
  46. void dma_host2gspxy(unsigned long saddr,
  47.                     unsigned long sptch,
  48.                     unsigned long daddr,
  49.                     unsigned long dptch,
  50.                     short sx,
  51.                     short sy,
  52.                     short dx,
  53.                     short dy,
  54.                     short xext,
  55.                     short yext,
  56.                     short psize,
  57.                     short swap);
  58. void draw_line(short x1,
  59.                short y1,
  60.                short x2,
  61.                short y2);
  62. void draw_oval(short w,
  63.                short h,
  64.                short xleft,
  65.                short ytop);
  66. void draw_ovalarc(short w,
  67.                   short h,
  68.                   short xleft,
  69.                   short ytop,
  70.                   short theta,
  71.                   short arc);
  72. void draw_piearc(short w,
  73.                  short h,
  74.                  short xleft,
  75.                  short ytop,
  76.                  short theta,
  77.                  short arc);
  78. int draw_plane(short planecode);
  79. void draw_point(short x,
  80.                 short y);
  81. void draw_polyline(short n,
  82.                    POINT *vert);
  83. void draw_polyline_a(short n,
  84.                      POINT *vert);
  85. void draw_rect(short w,
  86.                short h,
  87.                short xleft,
  88.                short ytop);
  89. unsigned long field_extract(PTR gptr,
  90.                             unsigned short fs);
  91. void field_insert(PTR gptr,
  92.                   unsigned short fs,
  93.                   unsigned long val);
  94. void fill_convex(short n,
  95.                  POINT *vert);
  96. void fill_convex_a(short n,
  97.                    POINT *vert);
  98. void fill_oval(short w,
  99.                short h,
  100.                short xleft,
  101.                short ytop);
  102. void fill_piearc(short w,
  103.                  short h,
  104.                  short xleft,
  105.                  short ytop,
  106.                  short theta,
  107.                  short arc);
  108. void fill_polygon(short n,
  109.                   POINT *vert);
  110. void fill_polygon_a(short n,
  111.                     POINT *vert);
  112. void fill_rect(short w,
  113.                short h,
  114.                short xleft,
  115.                short ytop);
  116. int flush_esym(void);
  117. void frame_oval(short w,
  118.                 short h,
  119.                 short xleft,
  120.                 short ytop,
  121.                 short dx,
  122.                 short dy);
  123. void frame_rect(short w,
  124.                 short h,
  125.                 short xleft,
  126.                 short ytop,
  127.                 short dx,
  128.                 short dy);
  129. int function_implemented(short function_code);
  130. void get_colors(short *fcolor,
  131.                 short *bcolor);
  132. void get_config(CONFIG *config);
  133. int get_curs_state(void);
  134. void get_curs_xy(short *px,
  135.                  short *py);
  136. void get_env(ENVIRONMENT *env);
  137. int get_fontinfo(short id,
  138.                  FONTINFO *pfontinfo);
  139. void get_isr_priorities(short numisrs,
  140.                         short *ptr);
  141. int get_modeinfo(short index,
  142.                  MODEINFO *modeinfo);
  143. long get_nearest_color(char r,
  144.                        char g,
  145.                        char b,
  146.                        char i);
  147. void get_offscreen_memory(short num_blocks,
  148.                           OFFSCREEN_AREA *offscreen);
  149. void get_palet(short palet_size,
  150.                PALET *palet);
  151. int get_palet_entry(long index,
  152.                     char *r,
  153.                     char *g,
  154.                     char *b,
  155.                     char *i);
  156. long get_pixel(short x,
  157.                short y);
  158. long get_pmask(void);
  159. int get_ppop(void);
  160. int get_state(void);
  161. int get_textattr(char *pcontrol,
  162.                  short count,
  163.                  short *val);
  164. int get_transp(void);
  165. PTR get_vector(unsigned short trapnum);
  166. int get_videomode(void);
  167. int get_windowing(void);
  168. short get_wksp(PTR *addr,
  169.                unsigned long *pitch);
  170. void gsp2cop(short copid,
  171.              long gspaddr,
  172.              long copaddr,
  173.              long length);
  174. void gsp2gsp(long src,
  175.              long dst,
  176.              unsigned long length);
  177. void gsp2host(long gptr,
  178.               char *hptr,
  179.               unsigned short length,
  180.               short swizzle);
  181. void gsp2hostxy(long saddr,
  182.                 long sptch,
  183.                 char *daddr,
  184.                 long dptch,
  185.                 short sx,
  186.                 short sy,
  187.                 short dx,
  188.                 short dy,
  189.                 short xext,
  190.                 short yext,
  191.                 short psize,
  192.                 short swizzle);
  193. long gsp_calloc(long nmemb,
  194.                 long size);
  195. void gsp_execute(unsigned long entry_point);
  196. int gsp_free(long ptr);
  197. int gsp_halt(void);
  198. long gsp_malloc(long size);
  199. long gsp_maxheap(void);
  200. void gsp_minit(long stack_size);
  201. unsigned long gsp_realloc(long ptr,
  202.                           long size);
  203. void host2gsp(char *hptr,
  204.               long gptr,
  205.               unsigned short length,
  206.               short swizzle);
  207. void host2gspxy(char *saddr,
  208.                 long sptch,
  209.                 long daddr,
  210.                 long dptch,
  211.                 short sx,
  212.                 short sy,
  213.                 short dx,
  214.                 short dy,
  215.                 short xext,
  216.                 short yext,
  217.                 short psize,
  218.                 short swizzle);
  219. void init_palet(void);
  220. void init_text(void);
  221. int install_alm(char *alm_name);
  222. int install_font(unsigned long pfont);
  223. int install_primitives(void);
  224. void install_usererror(void (*function_name)(void));
  225. short lmo(long n);
  226. unsigned long loadcoff(char *filename);
  227. short page_busy(void);
  228. short page_flip(short disp,
  229.                 short draw);
  230. void patnfill_convex(short n,
  231.                      POINT *vert);
  232. void patnfill_oval(short w,
  233.                    short h,
  234.                    short xleft,
  235.                    short ytop);
  236. void patnfill_piearc(short w,
  237.                      short h,
  238.                      short xleft,
  239.                      short ytop,
  240.                      short theta,
  241.                      short arc);
  242. void patnfill_polygon(short n,
  243.                       POINT *vert);
  244. void patnfill_polygon_a(short n,
  245.                         POINT *vert);
  246. void patnfill_rect(short w,
  247.                    short h,
  248.                    short xleft,
  249.                    short ytop);
  250. void patnframe_oval(short w,
  251.                     short h,
  252.                     short xleft,
  253.                     short ytop,
  254.                     short dx,
  255.                     short dy);
  256. void patnframe_rect(short w,
  257.                     short h,
  258.                     short xleft,
  259.                     short ytop,
  260.                     short dx,
  261.                     short dy);
  262. void patnpen_line(short x1,
  263.                   short y1,
  264.                   short x2,
  265.                   short y2);
  266. void patnpen_ovalarc(short w,
  267.                      short h,
  268.                      short xleft,
  269.                      short ytop,
  270.                      short theta,
  271.                      short arc);
  272. void patnpen_piearc(short w,
  273.                     short h,
  274.                     short xleft,
  275.                     short ytop,
  276.                     short theta,
  277.                     short arc);
  278. void patnpen_point(short x,
  279.                    short y);
  280. void patnpen_polyline(short n,
  281.                       POINT *vert);
  282. void patnpen_polyline_a(short n,
  283.                         POINT *vert);
  284. long peek_breg(short breg);
  285. void pen_line(short x1,
  286.               short y1,
  287.               short x2,
  288.               short y2);
  289. void pen_ovalarc(short w,
  290.                  short h,
  291.                  short xleft,
  292.                  short ytop,
  293.                  short theta,
  294.                  short arc);
  295. void pen_piearc(short w,
  296.                 short h,
  297.                 short xleft,
  298.                 short ytop,
  299.                 short theta,
  300.                 short arc);
  301. void pen_point(short x,
  302.                short y);
  303. void pen_polyline(short n,
  304.                   POINT *vert);
  305. void pen_polyline_a(short n,
  306.                     POINT *vert);
  307. void poke_breg(long breg,
  308.                short val);
  309. int rmo(long n);
  310. void seed_fill(short x,
  311.                short y,
  312.                long buf,
  313.                short maxbytes);
  314. void seed_patnfill(short x,
  315.                    short y,
  316.                    long buf,
  317.                    short maxbytes);
  318. int see_planes(short planecode);
  319. int select_font(short id);
  320. int select_plane(int a);
  321. void set_bcolor(long color);
  322. void set_clip_rect(unsigned short w,
  323.                    unsigned short h,
  324.                    short xleft,
  325.                    short ytop);
  326. void set_colors(long fcolor,
  327.                 long bcolor);
  328. int set_config(short graphics_mode,
  329.                short init_draw);
  330. void set_curs_shape(long shape);
  331. void set_curs_state(short enable);
  332. void set_curs_xy(short x,
  333.                  short y);
  334. void set_draw_origin(short x,
  335.                      short y);
  336. void set_dstbm(long baseaddr,
  337.                short pitch,
  338.                short xext,
  339.                short yext,
  340.                short psize);
  341. void set_fcolor(long color);
  342. short set_interrupt(short level,
  343.                     short priority,
  344.                     short enable,
  345.                     short scan_line);
  346. int set_mode_bit(unsigned short bitval);
  347. int set_ovl_color(short i,
  348.                   short r,
  349.                   short g,
  350.                   short b);
  351. void set_palet(long count,
  352.                long index,
  353.                PALET *palet);
  354. short set_palet_entry(long index,
  355.                       unsigned char r,
  356.                       unsigned char g,
  357.                       unsigned char b,
  358.                       unsigned char i);
  359. void set_patn(PATTERN *ppatn);
  360. void set_pensize(short w,
  361.                  short h);
  362. void set_pmask(long pmask);
  363. void set_ppop(short ppop);
  364. int set_spec_reg(unsigned short regval);
  365. void set_srcbm(long baseaddr,
  366.                short pitch,
  367.                short xext,
  368.                short yext,
  369.                short psize);
  370. int set_swap_bit(unsigned short bitval);
  371. int set_sync_bit(unsigned short bitval);
  372. int set_textattr(char *pcontrol,
  373.                  short count,
  374.                  short *val);
  375. void set_timeout(short value);
  376. void set_transp(short mode);
  377. unsigned long set_vector(short trapnum,
  378.                          unsigned long gptr);
  379. int set_videomode(short mode,
  380.                   short style);
  381. void set_windowing(short mode);
  382. void set_wksp(unsigned long addr,
  383.               unsigned long pitch);
  384. void styled_line(short x1,
  385.                  short y1,
  386.                  short x2,
  387.                  short y2,
  388.                  long style,
  389.                  short mode);
  390. void swap_bm(void);
  391. void synchronize(void);
  392. int text_out(short x,
  393.              short y,
  394.              unsigned char *s);
  395. int text_width(unsigned char *s);
  396. void transp_off(void);
  397. void transp_on(void);
  398. void wait_scan(short line);
  399. void zoom_rect(short ws,
  400.                short hs,
  401.                short xs,
  402.                short ys,
  403.                short wd,
  404.                short hd,
  405.                short xd,
  406.                short yd,
  407.                PTR rowbuf);
  408.