0 Members and 2 Guests are viewing this topic.
If you want to fix this I can send you the Image
#include <SFML/Audio.hpp>#include <SFML/Graphics.hpp> int main() { // Create the main window sf::RenderWindow App; // Load a sprite to display sf::Image Image; if (!Image.LoadFromFile("bild.png")) return EXIT_FAILURE; sf::Sprite Sprite(Image); // Start the game loop bool Running = true; while (Running) { // Process events sf::Event Event; while (App.GetEvent(Event)) { // Close window : exit if (Event.Type == sf::Event::Closed) Running = false; } // Draw the sprite App.Draw(Sprite); // Draw the string // App.Draw(Text); // Update the window App.Display(); } return EXIT_SUCCESS; }
Can you post the picture here in order we can test it ?
apparently there are some "unsigned long" variables used in the code (instead of a fixed size type like uint32)
Am I wrong?
I always thought that in C++ "unsigned long" is 32 bit signless integer