Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - lucasben

Pages: [1]
1
C / Re: help with sfShape circleS
« on: November 03, 2013, 11:38:25 pm »
Thanks,

I trying this :)
and i will tell you.. :) Thx

2
C / help with sfShape circleS
« on: November 03, 2013, 10:46:37 pm »
hello :)
i'm a new user of SFML :) i have a question :)

this is a code (work fine) for print one (1) circle :

sfShape *cercle = sfShape_CreateCircle(20,20,10,blanc,1,gris);

sfRenderWindow_DrawShape(fenetre,cercle);

When i want create more circle ( depends a number by scanf) how to do  ?

i try that :

for(i=0;i<nombre;i++){
sfShape *cercle = sfShape_CreateCircle(20,20,10,blanc,1,gris);
}

for(i=0;i<nombre;i++){
sfRenderWindow_DrawShape(fenetre,cercle);
}
 

but doesn't work so i make a change like that :

for(i=0;i<nombre;i++){
sfShape *cercle = sfShape_CreateCircle(20,20,10,blanc,1,gris);
}

for(i=0;i<nombre;i++){
sfRenderWindow_DrawShape(fenetre,cercle);
}

but it's not working too.

sorry for my english and the name of variable.

thanks for your help:)

Pages: [1]
anything