home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 1 / RISC_DISC_1.iso / pd_share / code / desklib / !DeskLib / h / ColourTran next >
Encoding:
Text File  |  1994-05-13  |  1.5 KB  |  52 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. extern os_error *ColourTrans_SetGCOL(int palette, int flag, int gcol);
  27.  
  28. extern os_error *ColourTrans_InvalidateCache(void);
  29.  
  30. extern os_error *ColourTrans_SelectTable(int src_mode, int *src_pal,
  31.                                   int dst_mode, int *dst_pal,
  32.                                   char *table);
  33.  
  34. typedef struct
  35. {
  36.   int font;
  37.   int back;
  38.   int fore;
  39.   int max;
  40. } colourtrans_fontblock;
  41.  
  42. extern os_error *ColourTrans_ReturnFontColours(colourtrans_fontblock *fontcols);
  43.  
  44.  
  45. /* ColourTrans_ReturnColourNumberForMode --------------------------------------
  46.  * Returns -1 to indicate an error.
  47.  */
  48. extern int ColourTrans_ReturnColourNumberForMode(int palette, int mode,
  49.                                                  int *pal);
  50.  
  51. #endif
  52.