Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Funktion.hpp
- #ifndef FUNKTION
- #define FUNKTION
- namespace moritz
- {
- int Error(char Name);
- };
- #endif
- funktion.cpp
- #include <iostream>
- #include <SFML\Graphics.hpp>
- #include "Funktion.hpp"
- int moritz::Error(char name)
- {
- sf::RenderWindow Error(sf::VideoMode(250,150,32),"Error 104!");
- while(Error.IsOpened())
- {
- sf::Event Error1;
- while(Error.GetEvent(Error1))
- {
- if(Error1.Type == sf::Event::Closed)
- Error.Close();
- }
- sf::Font Fail;
- if(!Fail.LoadFromFile("arial.ttf"))
- {
- }
- sf::String Fehlermeldung("Bild wurde nicht gefunden",Fail,16);
- Fehlermeldung.SetColor(sf::Color(0,0,0));
- Fehlermeldung.SetX(30);
- Fehlermeldung.SetY(60);
- Error.Clear(sf::Color(255,255,255));
- Error.Draw(Fehlermeldung);
- Error.Display();
- }
- return EXIT_FAILURE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement