void init_renderer(); void renderer(); void close_renderer(); typedef unsigned char byte; typedef struct t_coord { int x,y; } t_coord; typedef struct t_complex { float x,y; } t_complex; typedef struct t_interpol { unsigned int coord ; //coordinates of the top left pixel. unsigned int weight; //32 bits = 4*8= weights of the four corners } t_interpol; typedef struct t_effect { int num_effect; int x_curve; int curve_color; int curve_amplitude; int spectral_amplitude; int spectral_color; int mode_spectre; int spectral_shift; } t_effect; typedef struct t_screen_parametres { int width; int height; int scale; int bpp; //bytes per pixels. } t_screen_parametres; typedef struct t_general_parametres { int t_between_effects; int t_between_colors; } t_general_parametres; extern t_screen_parametres scr_par;