graph.c File Reference

#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "global.h"
#include "struct.h"
#include "moteur.h"
#include "boutons.h"
#include "pages.h"
#include "erreurs.h"
#include "sdlscreen.h"
#include "graph.h"
#include "divers.h"
#include "pxsimple.h"
#include "pxtall.h"
#include "pxwide.h"
#include "pxdouble.h"
#include "windows.h"

Data Structures

struct  POLYGON_EDGE

Functions

void Mettre_Ecran_A_Jour (short X, short Y, short Largeur, short Hauteur)
void Transformer_point (short X, short Y, float cosA, float sinA, short *Xr, short *Yr)
int Initialiser_mode_video (int Largeur, int Hauteur, int Fullscreen)
void Redimentionner_image (word Largeur_choisie, word Hauteur_choisie)
void Remap_picture (void)
void Get_colors_from_brush (void)
void Fill (short *Limite_atteinte_Haut, short *Limite_atteinte_Bas, short *Limite_atteinte_Gauche, short *Limite_atteinte_Droite)
void Remplir (byte Couleur_de_remplissage)
void Pixel_figure_Definitif (word Pos_X, word Pos_Y, byte Couleur)
void Pixel_clippe (word Pos_X, word Pos_Y, byte Couleur)
void Pixel_figure_Preview (word Pos_X, word Pos_Y, byte Couleur)
void Pixel_figure_Preview_auto (word Pos_X, word Pos_Y)
void Pixel_figure_Preview_xor (word Pos_X, word Pos_Y, __attribute__((unused)) byte Couleur)
void Pixel_figure_Preview_xorback (word Pos_X, word Pos_Y, __attribute__((unused)) byte Couleur)
void Pixel_figure_Effacer_preview (word Pos_X, word Pos_Y, __attribute__((unused)) byte Couleur)
void Pixel_figure_Dans_brosse (word Pos_X, word Pos_Y, byte Couleur)
void Tracer_cercle_vide_General (short Centre_X, short Centre_Y, short Rayon, byte Couleur)
void Tracer_cercle_vide_Definitif (short Centre_X, short Centre_Y, short Rayon, byte Couleur)
void Tracer_cercle_vide_Preview (short Centre_X, short Centre_Y, short Rayon, byte Couleur)
void Effacer_cercle_vide_Preview (short Centre_X, short Centre_Y, short Rayon)
void Tracer_cercle_plein (short Centre_X, short Centre_Y, short Rayon, byte Couleur)
void Tracer_ellipse_vide_General (short Centre_X, short Centre_Y, short Rayon_horizontal, short Rayon_vertical, byte Couleur)
void Tracer_ellipse_vide_Definitif (short Centre_X, short Centre_Y, short Rayon_horizontal, short Rayon_vertical, byte Couleur)
void Tracer_ellipse_vide_Preview (short Centre_X, short Centre_Y, short Rayon_horizontal, short Rayon_vertical, byte Couleur)
void Effacer_ellipse_vide_Preview (short Centre_X, short Centre_Y, short Rayon_horizontal, short Rayon_vertical)
void Tracer_ellipse_pleine (short Centre_X, short Centre_Y, short Rayon_horizontal, short Rayon_vertical, byte Couleur)
void Rectifier_coordonnees_a_45_degres (short AX, short AY, short *BX, short *BY)
void Tracer_ligne_General (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y, byte Couleur)
void Tracer_ligne_Definitif (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y, byte Couleur)
void Tracer_ligne_Preview (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y, byte Couleur)
void Tracer_ligne_Preview_xor (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y, byte Couleur)
void Tracer_ligne_Preview_xorback (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y, byte Couleur)
void Effacer_ligne_Preview (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y)
void Tracer_rectangle_vide (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y, byte Couleur)
void Tracer_rectangle_plein (short Debut_X, short Debut_Y, short Fin_X, short Fin_Y, byte Couleur)
void Tracer_courbe_General (short X1, short Y1, short X2, short Y2, short X3, short Y3, short X4, short Y4, byte Couleur)
void Tracer_courbe_Definitif (short X1, short Y1, short X2, short Y2, short X3, short Y3, short X4, short Y4, byte Couleur)
void Tracer_courbe_Preview (short X1, short Y1, short X2, short Y2, short X3, short Y3, short X4, short Y4, byte Couleur)
void Effacer_courbe_Preview (short X1, short Y1, short X2, short Y2, short X3, short Y3, short X4, short Y4, byte Couleur)
void Aerographe (short Bouton_clicke)
void Degrade_de_base (long Indice, short Pos_X, short Pos_Y)
void Degrade_de_trames_simples (long Indice, short Pos_X, short Pos_Y)
void Degrade_de_trames_etendues (long Indice, short Pos_X, short Pos_Y)
void Tracer_cercle_degrade (short Centre_X, short Centre_Y, short Rayon, short Eclairage_X, short Eclairage_Y)
void Tracer_ellipse_degradee (short Centre_X, short Centre_Y, short Rayon_horizontal, short Rayon_vertical, short Eclairage_X, short Eclairage_Y)
void Tracer_rectangle_degrade (short RAX, short RAY, short RBX, short RBY, short VAX, short VAY, short VBX, short VBY)
void fill_edge_structure (POLYGON_EDGE *edge, short *i1, short *i2)
POLYGON_EDGEadd_edge (POLYGON_EDGE *list, POLYGON_EDGE *edge, int sort_by_x)
POLYGON_EDGEremove_edge (POLYGON_EDGE *list, POLYGON_EDGE *edge)
void Polyfill_General (int Vertices, short *Points, int Color)
void Polyfill (int Vertices, short *Points, int Color)
void Remplacer (byte Nouvelle_couleur)
void Liste2tables (word *Liste, short Pas, byte Mode, byte *Table_inc, byte *Table_dec)
void Afficher_pixel (word X, word Y, byte Couleur)
byte Aucun_effet (__attribute__((unused)) word X, __attribute__((unused)) word Y, byte Couleur)
byte Effet_Shade (word X, word Y, __attribute__((unused)) byte Couleur)
byte Effet_Quick_shade (word X, word Y, byte Couleur)
byte Effet_Tiling (word X, word Y, __attribute__((unused)) byte Couleur)
byte Effet_Smooth (word X, word Y, __attribute__((unused)) byte Couleur)

Function Documentation

void Mettre_Ecran_A_Jour ( short  X,
short  Y,
short  Largeur,
short  Hauteur 
)

void Transformer_point ( short  X,
short  Y,
float  cosA,
float  sinA,
short *  Xr,
short *  Yr 
)

int Initialiser_mode_video ( int  Largeur,
int  Hauteur,
int  Fullscreen 
)

References Affiche_brosse, Affiche_brosse_Double(), Affiche_brosse_Simple(), Affiche_brosse_Tall(), Affiche_brosse_Wide(), Afficher_ecran(), Afficher_ligne, Afficher_ligne_fast, Afficher_partie_de_l_ecran_Double(), Afficher_partie_de_l_ecran_Simple(), Afficher_partie_de_l_ecran_Tall(), Afficher_partie_de_l_ecran_Wide(), Afficher_partie_de_l_ecran_zoomee_Double(), Afficher_partie_de_l_ecran_zoomee_Simple(), Afficher_partie_de_l_ecran_zoomee_Tall(), Afficher_partie_de_l_ecran_zoomee_Wide(), Afficher_une_ligne_ecran_Double(), Afficher_une_ligne_ecran_fast_Double(), Afficher_une_ligne_ecran_fast_Wide(), Afficher_une_ligne_ecran_Simple(), Afficher_une_ligne_ecran_Tall(), Afficher_une_ligne_ecran_Wide(), Block, Block_Double(), Block_Simple(), Block_Tall(), Block_Wide(), Brouillon_Decalage_X, Brouillon_Decalage_Y, Brouillon_Loupe_Mode, Buffer_de_ligne_horizontale, Calculer_coordonnees_pinceau(), Calculer_donnees_loupe(), Calculer_limites(), Changer_cellules_palette(), Clear_brush, Clear_brush_Double(), Clear_brush_Simple(), Clear_brush_Tall(), Clear_brush_Wide(), Clear_brush_zoom, Clear_brush_zoom_Double(), Clear_brush_zoom_Simple(), Clear_brush_zoom_Tall(), Clear_brush_zoom_Wide(), Config, Display_brush_Color, Display_brush_Color_Double(), Display_brush_Color_Simple(), Display_brush_Color_Tall(), Display_brush_Color_Wide(), Display_brush_Color_zoom, Display_brush_Color_zoom_Double(), Display_brush_Color_zoom_Simple(), Display_brush_Color_zoom_Tall(), Display_brush_Color_zoom_Wide(), Display_brush_Mono, Display_brush_Mono_Double(), Display_brush_Mono_Simple(), Display_brush_Mono_Tall(), Display_brush_Mono_Wide(), Display_brush_Mono_zoom, Display_brush_Mono_zoom_Double(), Display_brush_Mono_zoom_Simple(), Display_brush_Mono_zoom_Tall(), Display_brush_Mono_zoom_Wide(), Display_screen, Display_zoomed_screen, Hauteur_ecran, HAUTEUR_MENU, S_Config::Indice_Sensibilite_souris_X, S_Config::Indice_Sensibilite_souris_Y, Largeur_ecran, Ligne_horizontale_XOR, Ligne_horizontale_XOR_Double(), Ligne_horizontale_XOR_Simple(), Ligne_horizontale_XOR_Tall(), Ligne_horizontale_XOR_Wide(), Ligne_verticale_XOR, Ligne_verticale_XOR_Double(), Ligne_verticale_XOR_Simple(), Ligne_verticale_XOR_Tall(), Ligne_verticale_XOR_Wide(), Lire_ligne, Lire_une_ligne_ecran_Double(), Lire_une_ligne_ecran_Simple(), Lire_une_ligne_ecran_Tall(), Lire_une_ligne_ecran_Wide(), Lit_pixel, Lit_Pixel_Double(), Lit_Pixel_Simple(), Lit_Pixel_Tall(), Lit_Pixel_Wide(), Loupe_Mode, Menu_Facteur_X, Menu_Facteur_Y, Menu_Ordonnee, Menu_Ordonnee_Texte, Menu_visible, Mode_video, Mouse_Facteur_de_correction_X, Mouse_Facteur_de_correction_Y, Nb_modes_video, Pixel, Pixel_Double(), PIXEL_DOUBLE, Pixel_height, Pixel_Preview, Pixel_Preview_Loupe, Pixel_Preview_Loupe_Double(), Pixel_Preview_Loupe_Simple(), Pixel_Preview_Loupe_Tall(), Pixel_Preview_Loupe_Wide(), Pixel_Preview_Normal, Pixel_Preview_Normal_Double(), Pixel_Preview_Normal_Simple(), Pixel_Preview_Normal_Tall(), Pixel_Preview_Normal_Wide(), Pixel_ratio, Pixel_Simple(), PIXEL_SIMPLE, Pixel_Tall(), PIXEL_TALL, Pixel_Wide(), PIXEL_WIDE, Pixel_width, Principal_Decalage_X, Principal_Decalage_Y, Principal_Hauteur_image, Principal_Largeur_image, Principal_Palette, S_Config::Ratio, Recadrer_ecran_par_rapport_au_zoom(), Remap_screen, Remap_screen_Double(), Remap_screen_Simple(), Remap_screen_Tall(), Remap_screen_Wide(), Resize_Hauteur, Resize_Largeur, Resolution_actuelle, Sensibilite_souris(), Set_Mode_SDL(), and Set_palette().

Referenced by Bouton_Reload(), Bouton_Resol(), Bouton_Safety_resol(), Gestion_principale(), Initialisation_du_programme(), and Load_picture().

void Redimentionner_image ( word  Largeur_choisie,
word  Hauteur_choisie 
)

void Remap_picture ( void   ) 

void Get_colors_from_brush ( void   ) 

void Fill ( short *  Limite_atteinte_Haut,
short *  Limite_atteinte_Bas,
short *  Limite_atteinte_Gauche,
short *  Limite_atteinte_Droite 
)

void Remplir ( byte  Couleur_de_remplissage  ) 

void Pixel_figure_Definitif ( word  Pos_X,
word  Pos_Y,
byte  Couleur 
)

void Pixel_clippe ( word  Pos_X,
word  Pos_Y,
byte  Couleur 
)

void Pixel_figure_Preview ( word  Pos_X,
word  Pos_Y,
byte  Couleur 
)

void Pixel_figure_Preview_auto ( word  Pos_X,
word  Pos_Y 
)

void Pixel_figure_Preview_xor ( word  Pos_X,
word  Pos_Y,
__attribute__((unused)) byte  Couleur 
)

void Pixel_figure_Preview_xorback ( word  Pos_X,
word  Pos_Y,
__attribute__((unused)) byte  Couleur 
)

void Pixel_figure_Effacer_preview ( word  Pos_X,
word  Pos_Y,
__attribute__((unused)) byte  Couleur 
)

void Pixel_figure_Dans_brosse ( word  Pos_X,
word  Pos_Y,
byte  Couleur 
)

void Tracer_cercle_vide_General ( short  Centre_X,
short  Centre_Y,
short  Rayon,
byte  Couleur 
)

void Tracer_cercle_vide_Definitif ( short  Centre_X,
short  Centre_Y,
short  Rayon,
byte  Couleur 
)

void Tracer_cercle_vide_Preview ( short  Centre_X,
short  Centre_Y,
short  Rayon,
byte  Couleur 
)

void Effacer_cercle_vide_Preview ( short  Centre_X,
short  Centre_Y,
short  Rayon 
)

void Tracer_cercle_plein ( short  Centre_X,
short  Centre_Y,
short  Rayon,
byte  Couleur 
)

void Tracer_ellipse_vide_General ( short  Centre_X,
short  Centre_Y,
short  Rayon_horizontal,
short  Rayon_vertical,
byte  Couleur 
)

void Tracer_ellipse_vide_Definitif ( short  Centre_X,
short  Centre_Y,
short  Rayon_horizontal,
short  Rayon_vertical,
byte  Couleur 
)

void Tracer_ellipse_vide_Preview ( short  Centre_X,
short  Centre_Y,
short  Rayon_horizontal,
short  Rayon_vertical,
byte  Couleur 
)

void Effacer_ellipse_vide_Preview ( short  Centre_X,
short  Centre_Y,
short  Rayon_horizontal,
short  Rayon_vertical 
)

void Tracer_ellipse_pleine ( short  Centre_X,
short  Centre_Y,
short  Rayon_horizontal,
short  Rayon_vertical,
byte  Couleur 
)

void Rectifier_coordonnees_a_45_degres ( short  AX,
short  AY,
short *  BX,
short *  BY 
)

void Tracer_ligne_General ( short  Debut_X,
short  Debut_Y,
short  Fin_X,
short  Fin_Y,
byte  Couleur 
)

void Tracer_ligne_Definitif ( short  Debut_X,
short  Debut_Y,
short  Fin_X,
short  Fin_Y,
byte  Couleur 
)

void Tracer_ligne_Preview ( short  Debut_X,
short  Debut_Y,
short  Fin_X,
short  Fin_Y,
byte  Couleur 
)

void Tracer_ligne_Preview_xor ( short  Debut_X,
short  Debut_Y,
short  Fin_X,
short  Fin_Y,
byte  Couleur 
)

void Tracer_ligne_Preview_xorback ( short  Debut_X,
short  Debut_Y,
short  Fin_X,
short  Fin_Y,
byte  Couleur 
)

void Effacer_ligne_Preview ( short  Debut_X,
short  Debut_Y,
short  Fin_X,
short  Fin_Y 
)

void Tracer_rectangle_vide ( short  Debut_X,
short  Debut_Y,
short  Fin_X,
short  Fin_Y,
byte  Couleur 
)

void Tracer_rectangle_plein ( short  Debut_X,
short  Debut_Y,
short  Fin_X,
short  Fin_Y,
byte  Couleur 
)

void Tracer_courbe_General ( short  X1,
short  Y1,
short  X2,
short  Y2,
short  X3,
short  Y3,
short  X4,
short  Y4,
byte  Couleur 
)

void Tracer_courbe_Definitif ( short  X1,
short  Y1,
short  X2,
short  Y2,
short  X3,
short  Y3,
short  X4,
short  Y4,
byte  Couleur 
)

void Tracer_courbe_Preview ( short  X1,
short  Y1,
short  X2,
short  Y2,
short  X3,
short  Y3,
short  X4,
short  Y4,
byte  Couleur 
)

void Effacer_courbe_Preview ( short  X1,
short  Y1,
short  X2,
short  Y2,
short  X3,
short  Y3,
short  X4,
short  Y4,
byte  Couleur 
)

void Aerographe ( short  Bouton_clicke  ) 

void Degrade_de_base ( long  Indice,
short  Pos_X,
short  Pos_Y 
)

void Degrade_de_trames_simples ( long  Indice,
short  Pos_X,
short  Pos_Y 
)

void Degrade_de_trames_etendues ( long  Indice,
short  Pos_X,
short  Pos_Y 
)

void Tracer_cercle_degrade ( short  Centre_X,
short  Centre_Y,
short  Rayon,
short  Eclairage_X,
short  Eclairage_Y 
)

void Tracer_ellipse_degradee ( short  Centre_X,
short  Centre_Y,
short  Rayon_horizontal,
short  Rayon_vertical,
short  Eclairage_X,
short  Eclairage_Y 
)

void Tracer_rectangle_degrade ( short  RAX,
short  RAY,
short  RBX,
short  RBY,
short  VAX,
short  VAY,
short  VBX,
short  VBY 
)

void fill_edge_structure ( POLYGON_EDGE edge,
short *  i1,
short *  i2 
)

POLYGON_EDGE* add_edge ( POLYGON_EDGE list,
POLYGON_EDGE edge,
int  sort_by_x 
)

POLYGON_EDGE* remove_edge ( POLYGON_EDGE list,
POLYGON_EDGE edge 
)

References POLYGON_EDGE::next, and POLYGON_EDGE::prev.

Referenced by Polyfill_General().

void Polyfill_General ( int  Vertices,
short *  Points,
int  Color 
)

void Polyfill ( int  Vertices,
short *  Points,
int  Color 
)

void Remplacer ( byte  Nouvelle_couleur  ) 

void Liste2tables ( word Liste,
short  Pas,
byte  Mode,
byte Table_inc,
byte Table_dec 
)

void Afficher_pixel ( word  X,
word  Y,
byte  Couleur 
)

byte Aucun_effet ( __attribute__((unused)) word  X,
__attribute__((unused)) word  Y,
byte  Couleur 
)

byte Effet_Shade ( word  X,
word  Y,
__attribute__((unused)) byte  Couleur 
)

byte Effet_Quick_shade ( word  X,
word  Y,
byte  Couleur 
)

byte Effet_Tiling ( word  X,
word  Y,
__attribute__((unused)) byte  Couleur 
)

byte Effet_Smooth ( word  X,
word  Y,
__attribute__((unused)) byte  Couleur 
)


Generated on Fri Mar 6 16:43:57 2009 for GrafX2 by  doxygen 1.5.8