I found this code somewhere, perlin noise generator, I think:
static {
for(int i=0; i<512; i++) perm[i]=p[i & 255];
}
What does the static do there? it was spammed in a lot other places as well… The code was practically built with static{} everywhere. I lost the original code somewhere so thats the only thing I have, but it was like that code above: no variable declarations there, which why I dont get it.
I think this is Java, not C++, which would mean it’s a static initialization block.