/*
    ####             #    #     # #
    #   #            #    #       #          The FreeWare C library for 
    #   #  ##   ###  #  # #     # ###             RISC OS machines
    #   # #  # #     # #  #     # #  #   ___________________________________
    #   # ####  ###  ##   #     # #  #                                      
    #   # #        # # #  #     # #  #    Please refer to the accompanying
    ####   ### ####  #  # ##### # ###    documentation for conditions of use
    ________________________________________________________________________

    File:    ColourTran.h
    Author:  Copyright  1993 Shaun Blackmore
    Version: 1.00 (13 May 1994)
    Purpose: Function veneer for ColourTrans SWIs
*/



#ifndef __dl_colourtran_h
#define __dl_colourtran_h

#ifdef __cplusplus
extern "C" {
#endif


#ifndef __dl_core_h
#include "Core.h"
#endif

extern os_error *ColourTrans_SetGCOL(int palette, int flag, int gcol);

extern os_error *ColourTrans_InvalidateCache(void);

extern os_error *ColourTrans_SelectTable(int src_mode, int *src_pal,
                                  int dst_mode, int *dst_pal,
                                  char *table);

typedef struct
{
  int font;
  int back;
  int fore;
  int max;
} colourtrans_fontblock;

extern os_error *ColourTrans_ReturnFontColours(colourtrans_fontblock *fontcols);


extern int ColourTrans_ReturnColourNumberForMode(int palette, int mode,
                                                 int *pal);
/*
Returns -1 to indicate an error.
*/

#ifdef __cplusplus
}
#endif


#endif
