Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Loading from file problem.
Print
Pages: [
1
]
Author
Topic: Loading from file problem. (Read 1288 times)
0 Members and 2 Guests are viewing this topic.
Pliskeviski
Newbie
Posts: 2
Loading from file problem.
«
on:
September 02, 2017, 08:47:27 pm »
Hello! I have a problem here, I have .png that contains a circle, but when a "shoot", shows a square.
Thanks!
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11032
Re: Loading from file problem.
«
Reply #1 on:
September 02, 2017, 09:01:09 pm »
See The White Square Problem as described in the tutorial:
https://www.sfml-dev.org/tutorials/2.4/graphics-sprite.php#the-white-square-problem
tl;dr don't copy the texture and make sure it doesn't run out of scope as long it's used
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Pliskeviski
Newbie
Posts: 2
Re: Loading from file problem.
«
Reply #2 on:
September 02, 2017, 09:33:56 pm »
Thanks! It's working.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Loading from file problem.