1
Ohh, that makes sense. Thanks!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
#include <SFML/Graphics.hpp>
int main()
{
// Create the main rendering window
sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFML Graphics");
// Create line
sf::Shape beam;
beam.Line(65.f, 68.f, 400.f, 400.f, 20.f, sf::Color(255, 0, 255));
// Start loop
bool Running = true;
while (Running)
{
// Process events
sf::Event Event;
while (App.GetEvent(Event))
{
// Close window : exit
if (Event.Type == sf::Event::Closed)
Running = false;
}
App.Draw(beam);
// Display window contents on screen
App.Display();
}
return EXIT_SUCCESS;
}