SFML community forums
Help => General => Topic started by: EGYPTIAN CODER on May 03, 2017, 12:01:40 am
-
hello every one ;
I want to draw cosine function or any function
and what i do is setting a rectangle shape size to 1 (to be a pixel )
but I think this is not the best way to do it or I am wrong because it was slow not much but it was slow
I draw the cosine function for a determined range;
well, I i know that if i just did one drawing to the function and one display things will be fine 8),but I want
to handle input that affect the function graph so one drawing and displaying is bad in this situation :(;
-
You can use a sf::VertexArray of sf::Points.