Sun Apr 17, 2016 8:20 am
I know of course the difference between pass by value or by reference, that's not the point.
@ajstarks, paeryn:
but initWindowSize has to be called before init, with constant parameters which have to be defined before anyway:
int width=800, height=600;
initWindowSize(100, 100, width, height);
the same then is passed afterwards to init and start:
init(&width, &height));
Start(width, height);
why makes it sense to call this (width, height) 3 times, one after another,
and why has it to be passed by reference to init() which has already been set so far before and which now is not expected to change (or be changed) anything of width, height after that call anyway?
And in which respect is a drawing region different from the screen region?
it's still expected to remain
int width=800, height=600;
as defined at the top!
Or what do I miss?
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;int main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PointOut(x,y);}}}for(;;);}