Skip to content
Permalink
Browse files
Add files via upload
  • Loading branch information
borgessa committed Aug 19, 2019
1 parent b138057 commit bfe4a8d904bd2eaaad3faad9bca5568b3f73f221
Showing 1 changed file with 31 additions and 0 deletions.
@@ -0,0 +1,31 @@
#include <SFML/Graphics.hpp>

int renderSplashScreen()
{

//window is rendered as 800*600 (size), and its title is "Coventry University"
sf::RenderWindow window(sf::VideoMode(800, 600), "Coventry University");


//loads the background, first it is loaded as a texture and then it is turned into a sprite
sf::Texture splashBackground;
splashBackground.loadFromFile("images/splashBackground.png");

sf::Sprite splashBackgroundSprite(splashBackground);


window.draw(splashBackgroundSprite);
window.display();


//loop that gives delay to the function renderSplashScreen and makes it stay longer on the window
int i = 1;
while (i < 999999995)
{
i++;
};


return 0;

}

0 comments on commit bfe4a8d

Please sign in to comment.