So I want this image to be displayed as a 200x200 image, but actually it must be 32x32.Create a 200x200 window with a 32x32 view. It's very simple, have a look at the view tutorial and documentation.
then when i try to draw the program crashes because it's as if i were drawing outside the image.SFML doesn't crash when you draw outside the view. You do something else wrong.
SFML doesn't crash when you draw outside the view. You do something else wrong.
//given image of 32x32
image.setPixel(mouse.x,mouse.y, color);
It crashes because I draw outside the image like this:That's not drawing, just setting pixels in a container.Code: [Select]//given image of 32x32
image.setPixel(mouse.x,mouse.y, color);