1
Window / No Window :/
« on: January 29, 2010, 12:50:49 pm »
Hello,
i can't see the Game Window, only in the Taskbar it's showed that it's created on Ubuntu.
I'm using GCC and Code::Blocks.
This is the Code:
Thank you for your help.
i can't see the Game Window, only in the Taskbar it's showed that it's created on Ubuntu.
I'm using GCC and Code::Blocks.
This is the Code:
Code: [Select]
#include <SFML/Graphics.hpp>
#include <iostream>
int main()
{
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
// Start game loop
while (App.IsOpened())
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
App.Close();
}
// Clear the screen (fill it with black color)
App.Clear();
// Display window contents on screen
App.Display();
}
return EXIT_SUCCESS;
}
Thank you for your help.