SFML community forums
Help => Graphics => Topic started by: doomlead on November 30, 2014, 09:59:51 am
-
I am using sfml 2.1, the compiler/IDE I am using is code blocks.
The subject is the error.
I recieved my code looks like this
sf::Texture texture;
texture.loadFromFile("sprite1.png"));
sprite1.png is a famtsu sprite sheet.
-
You have an extra closing bracket at the end, that might be the problem.
-
You have an extra closing bracket at the end, that might be the problem.
that was a typo for the forum my code doesnt actually have the extra parenthesis code blocks wouldn't have let me compile with an extra parenthesis.
everything compiles just fine its when i run it the sfml window is blank and the codeblocks console window gives me the failed to load message
-
I think the error message is pretty clear... 8-bit PNG images are not supported :P