/*

    renderfx.h

*/


#ifndef  RENDERFX_H
#define RENDERFX_H

#include "g_main.h"

void *init_addcomb (void *,cbitmap *,cbitmap *,int);
void  doit_addcomb (void *,cbitmap *,cbitmap *,cbitmap *,int,int  );
void  exit_addcomb (void *);

void *init_subcomb (void *,cbitmap *,cbitmap *,int);
void  doit_subcomb (void *,cbitmap *,cbitmap *,cbitmap *,int,int  );
void  exit_subcomb (void *);

void *init_addcombnc (void *,cbitmap *,cbitmap *,int);
void  doit_addcombnc (void *,cbitmap *,cbitmap *,cbitmap *,int,int  );
void  exit_addcombnc (void *);

void *init_subcombnc (void *,cbitmap *,cbitmap *,int);
void  doit_subcombnc (void *,cbitmap *,cbitmap *,cbitmap *,int,int );
void  exit_subcombnc (void *);

void *init_50pcomb (void *,cbitmap *,cbitmap *,int);
void  doit_50pcomb (void *,cbitmap *,cbitmap *,cbitmap *,int,int );
void  exit_50pcomb (void *);

void *init_25pcomb (void *,cbitmap *,cbitmap *,int);
void  doit_25pcomb (void *,cbitmap *,cbitmap *,cbitmap *,int,int );
void  exit_25pcomb (void *);

void *init_simblur (void *,cbitmap *,cbitmap *,int);
void  doit_simblur (void *,cbitmap *,cbitmap *,cbitmap *,int ,int);
void  exit_simblur (void *);

void *init_stripeblur (void *,cbitmap *,cbitmap *,int);
void  doit_stripeblur (void *,cbitmap *,cbitmap *,cbitmap *,int ,int);
void  exit_stripeblur (void *);

void *init_edgedet (void *,cbitmap *,cbitmap *,int);
void  doit_edgedet (void *,cbitmap *,cbitmap *,cbitmap *,int,int );
void  exit_edgedet (void *);

void *init_copycon (void *,cbitmap *,cbitmap *,int);
void  doit_copycon (void *,cbitmap *,cbitmap *,cbitmap *,int ,int );
void  exit_copycon (void *);

void *init_copyadd (void *,cbitmap *,cbitmap *,int);
void  doit_copyadd (void *,cbitmap *,cbitmap *,cbitmap *,int ,int );
void  exit_copyadd (void *);

void *init_copytrans (void *,cbitmap *,cbitmap *,int);
void  doit_copytrans (void *,cbitmap *,cbitmap *,cbitmap *,int ,int );
void  exit_copytrans (void *);

void *init_copyxfade (void *,cbitmap *,cbitmap *,int);
void  doit_copyxfade (void *,cbitmap *,cbitmap *,cbitmap *,int ,int );
void  exit_copyxfade (void *);

void *init_paladjust (void *,cbitmap *,cbitmap *,int);
void  doit_paladjust (void *,cbitmap *,cbitmap *,cbitmap *,int ,int );
void  exit_paladjust (void *);

void *init_clearbuf (void *,cbitmap *,cbitmap *,int);
void  doit_clearbuf (void *,cbitmap *,cbitmap *,cbitmap *,int ,int );
void  exit_clearbuf (void *);

typedef struct {

    int sx1,sy1;
    int sx2,sy2;
    int dx1,dy1;
    int dx2,dy2;

    float mx1,my1;
    float mx2,my2;

    } tCopyCon;

typedef struct {

    int sx1,sy1;
    int sx2,sy2;
    int dx1,dy1;
    int dx2,dy2;

    float mx1,my1;
    float mx2,my2;

    float fade;
    float fadeadd;

    float sinamp;
    float sinspeed;

    float sinamp2;
    float sinspeed2;

    } tCopyTrans;

typedef struct {

    float   bright1,bright2;

    } tPalAdjust;

#endif

