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 - CrowbarJones

Pages: [1]
1
Graphics / Re: Load From File
« on: February 15, 2024, 04:55:23 am »
Thank you

2
Graphics / Re: Load From File
« on: February 14, 2024, 02:04:13 pm »
Are you mixing debug and release version (e.g. building in debug while using SFML release libraries)?

Try some other image to be sure.
Thanks for your quick response.
I've tried some other images, and the result is some images work well, while some do not. But I think the problem is in the image itself.
Just one more quick question, do you know in which case SFML will mark an image as corrupt? I've searched for some information on the Internet and I found that generally, if I can open and see the image, it is not corrupt. However, when I'm testing, I successfully opened and viewed all the images that SFML marked as corrupt.

3
Graphics / Load From File
« on: February 14, 2024, 11:23:18 am »
I tried to load an image for a texture, but the program failed to load that image with the reason "Image not of any known type, or corrupt". Why does this error happen? I used .png image, it is supported, for sure. Also, I've checked that the image it a real png image by checking in "Properties" of that image file. In addition, after testing, I'm quite sure that the program successfully found the location of the file.

4
Graphics / A question about scrolling the view in SFML Graphics
« on: March 22, 2023, 07:30:29 am »
According to the tutorials, to use a view we must call a setView function before drawing. The problem is that I have a big game map which is much bigger than the window; I use the view to display a part of the map on the window, but I want to show a different part of the map when the player scrolls the mouse wheel. So I need to change the view, but to do that, I need to call setView again and draw everything again. Everything here is a very very big map, so the window display them with completely delay and no smooth. Is there any other (and more useful) way to change the view?
Thanks!

Pages: [1]
anything