Max 5 API Reference
00001 #ifndef _JIT_FUNCTOR_FRACTAL_H_ 00002 #define _JIT_FUNCTOR_FRACTAL_H_ 00003 00004 /* 00005 * Copyright 2001-2005 - Cycling '74 00006 * Derek Gerstmann - derek@cycling74.com 00007 * 00008 * Common utilities for fractal functor objects 00009 * 00010 */ 00011 00012 /*************************************************************************/ 00013 00014 #include "jit.common.h" 00015 #include "jit.functor.h" 00016 00017 #define JIT_FRACTAL_MAX_OCTAVES (32) 00018 #define JIT_FRACTAL_DEFAULT_SCALE (1.0) 00019 #define JIT_FRACTAL_DEFAULT_OFFSET (0.0) 00020 #define JIT_FRACTAL_DEFAULT_ROUGHNESS (0.65) 00021 #define JIT_FRACTAL_DEFAULT_LACUNARITY (2.112) 00022 #define JIT_FRACTAL_DEFAULT_DETAIL (3.0) 00023 #define JIT_FRACTAL_DEFAULT_LEVEL (0.0) 00024 #define JIT_FRACTAL_DEFAULT_GAIN (1.0) 00025 #define JIT_FRACTAL_DEFAULT_RESULT (1.0) 00026 #define JIT_FRACTAL_DEFAULT_SEED (-1138) 00027 00028 /*************************************************************************/ 00029 00030 typedef struct _jit_functor_fractal_combined_matrix 00031 { 00032 long **fixed; 00033 float **float32; 00034 double **float64; 00035 long rows; 00036 long cols; 00037 00038 } t_jit_functor_fractal_combined_matrix; 00039 00040 00041 typedef struct _jit_functor_fractal_combined_matrix_dynarray 00042 { 00043 t_jit_functor_fractal_combined_matrix *m; 00044 long count; 00045 00046 } t_jit_functor_fractal_combined_matrix_dynarray; 00047 00048 /*************************************************************************/ 00049 00050 t_jit_err jit_functor_fractal_exponents_init( 00051 t_jit_functor_combined_dynarray *exp, 00052 double octaves, double increment, double lacunarity); 00053 00054 t_jit_err jit_functor_fractal_rotations_init( 00055 t_jit_functor_fractal_combined_matrix_dynarray *x, 00056 double octaves, long dimcount, long seed); 00057 00058 t_jit_err jit_functor_fractal_rotations_destroy( 00059 t_jit_functor_fractal_combined_matrix_dynarray *x); 00060 00061 t_jit_err jit_functor_fractal_rotation_matrix_init( 00062 t_jit_functor_fractal_combined_matrix *x, 00063 long dimcount, long seed); 00064 00065 t_jit_err jit_functor_fractal_rotation_matrix_destroy( 00066 t_jit_functor_fractal_combined_matrix *x); 00067 00068 /*************************************************************************/ 00069 00070 #endif
Copyright © 2008, Cycling '74