home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / gcc / !GCC / patches / DeskLib / h / ColourTran next >
Encoding:
Text File  |  1994-10-03  |  1.6 KB  |  60 lines

  1. /*
  2.     ####             #    #     # #
  3.     #   #            #    #       #          The FreeWare C library for
  4.     #   #  ##   ###  #  # #     # ###             RISC OS machines
  5.     #   # #  # #     # #  #     # #  #   ___________________________________
  6.     #   # ####  ###  ##   #     # #  #
  7.     #   # #        # # #  #     # #  #    Please refer to the accompanying
  8.     ####   ### ####  #  # ##### # ###    documentation for conditions of use
  9.     ________________________________________________________________________
  10.  
  11.     File:    ColourTran.h
  12.     Author:  Copyright © 1993 Shaun Blackmore
  13.     Version: 1.00 (13 May 1994)
  14.     Purpose: Function veneer for ColourTrans SWIs
  15. */
  16.  
  17.  
  18.  
  19. #ifndef __dl_coltrans_h
  20. #define __dl_coltrans_h
  21.  
  22. #ifndef __dl_core_h
  23. #include "core.h"
  24. #endif
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. extern os_error *ColourTrans_SetGCOL(int palette, int flag, int gcol);
  31.  
  32. extern os_error *ColourTrans_InvalidateCache(void);
  33.  
  34. extern os_error *ColourTrans_SelectTable(int src_mode, int *src_pal,
  35.                                   int dst_mode, int *dst_pal,
  36.                                   char *table);
  37.  
  38. typedef struct
  39. {
  40.   int font;
  41.   int back;
  42.   int fore;
  43.   int max;
  44. } colourtrans_fontblock;
  45.  
  46. extern os_error *ColourTrans_ReturnFontColours(colourtrans_fontblock *fontcols);
  47.  
  48.  
  49. /* ColourTrans_ReturnColourNumberForMode --------------------------------------
  50.  * Returns -1 to indicate an error.
  51.  */
  52. extern int ColourTrans_ReturnColourNumberForMode(int palette, int mode,
  53.                                                  int *pal);
  54.  
  55. #ifdef __cplusplus
  56.            }
  57. #endif
  58.  
  59. #endif
  60.