Hi everyone, I was trying to learn this section but I stucked at the beginning.
When I use xmax and xmin its working however when I try to use new method, I cannot use leftmost and rightmost at all. Program doesnt take any variable from screen.
xmin = leftmost.x;
xmax = rightmost.x;
these two still equals to 5. there is no error however it is not taking the size of screen it always use the beginning ones. When I change my code
float xmin = -5f;
to
float xmin; it is not moving either.
My code: code