00001 #ifndef __GLOBAL_HPP__
00002 #define __GLOBAL_HPP__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 const char APPLICATION_NAME[] = "Fractales";
00028 const unsigned int APPLICATION_WIDTH = 640;
00029 const unsigned int APPLICATION_HEIGHT = 480;
00030
00031
00032 const int NB_MAX_CORE = 32;
00033
00034 enum ListInitFCT
00035 {
00036 lifctPOINTALEATOIRE = 0,
00037 lifctPOINTIMAGE,
00038 lifctENDOFLIST
00039 };
00040
00041 enum ListGeneratorFCT
00042 {
00043 lgfctMANDELBROT = 0,
00044 lgfctBATEAUENFEU,
00045 lgfctTRICORN,
00046 lgfctJULIAN,
00047 lgfctNEWTON,
00048 lgfctNOVA,
00049 lgfctENDOFLIST
00050 };
00051
00052 enum ListCurveFCT
00053 {
00054 lcfctCLIFFORDATTRACTORS,
00055 lcfctCLIFFORDATTRACTORS2,
00056 lcfctENDOFLIST
00057 };
00058
00059 enum ListAccumulateurFCT
00060 {
00061 lafctACCUMULERSURLASEQUENCE = 0,
00062 lafctACCUMULERSURORIGINE,
00063 lafctENDOFLIST
00064 };
00065
00066 struct Params
00067 {
00068 ListInitFCT lifct;
00069 ListGeneratorFCT lgfct;
00070 ListAccumulateurFCT lafct;
00072 unsigned int iWidth;
00073 unsigned int iHeight;
00075 double zX;
00076 double zY;
00077 double zWidth;
00078 double zHeight;
00079 };
00080
00081 struct ParamsCurve
00082 {
00083 ListCurveFCT lcfct;
00085 unsigned int nbPoints;
00087 double pX;
00088 double pY;
00090 double paramA;
00091 double paramB;
00092 double paramC;
00093 double paramD;
00094
00095 unsigned int iWidth;
00096 unsigned int iHeight;
00098 double zX;
00099 double zY;
00100 double zWidth;
00101 double zHeight;
00102 };
00103
00104 #endif