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:)