… | |
… | |
21 | */ |
21 | */ |
22 | |
22 | |
23 | #ifndef NOISE_H_ |
23 | #ifndef NOISE_H_ |
24 | #define NOISE_H_ |
24 | #define NOISE_H_ |
25 | |
25 | |
|
|
26 | #if 1 // blitz++0.09 |
26 | #include <string.h> // workaround for tinyvec using memcpy without including string.h |
27 | #include <string.h> // workaround for tinyvec using memcpy without including string.h |
|
|
28 | #include <cstdlib> // workaround for tinyvec using labs without including cstdlib |
27 | #include <blitz/tinyvec.h> |
29 | #include <blitz/tinyvec.h> |
28 | #include <blitz/tinyvec-et.h> |
30 | #include <blitz/tinyvec-et.h> |
|
|
31 | #else |
|
|
32 | // blitz++ 0.10 - not working |
|
|
33 | #include <blitz/array.h> |
|
|
34 | #include <blitz/tinyvec2.h> |
|
|
35 | #endif |
29 | |
36 | |
30 | #include "global.h" |
37 | #include "global.h" |
31 | |
38 | |
32 | typedef blitz::TinyVector<float,2> vec2d; |
39 | typedef blitz::TinyVector<float,2> vec2d; |
33 | typedef blitz::TinyVector<float,3> vec3d; |
40 | typedef blitz::TinyVector<float,3> vec3d; |