Robię sobie takie coś dla zabawy chce jak zawsze wyświetlić tekst a tu co nie wyświetla się. Oto kod:
#include <SFML/Graphics.hpp>
#include <time.h>
using namespace sf;
int main()
{
srand(time(0));
// Create the main window
RenderWindow app(VideoMode(800, 600), "SFML Inter-MENU");
Text tekst; tekst.setString("Inter-MENU");
tekst.setColor(Color::Black);
tekst.setPosition(0,0);
// Start the loop
while (app.isOpen())
{
// Process events
Event event;
while (app.pollEvent(event))
{
// Close window : exit
if (event.type == Event::Closed)
app.close();
}
// Clear screen
app.clear(Color::White);
// Draw elements
app.draw(tekst);
// Update the window
app.display();
}
return EXIT_SUCCESS;
}