Hi guys. I just installed SFML into my Code::Blocks, linked everything and include all i need but... after compile a simple program my window just does not appear! In SDL everything worked fine so its not problem with my system or somethin like this ;p
Here is the code:
#include <SFML/System.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
// Create the main window
sf::RenderWindow App(sf::VideoMode(640, 480, 32), "SFML Window");
sf::Event Event;
while(App.IsOpened())
{
while(App.GetEvent(Event))
{
if(Event.Type == sf::Event::Closed)
{
App.Close();
}
}
App.Clear();
App.Display();
}
return EXIT_SUCCESS;
}
Everything is compling without problems, but after run i see only console but no window at all :/ Maby its something with my mingw? i don't have any clue because its my first time with this lib. Help me please ;p