In this tutorial I will show you how to integrate the popular SFML library in your Visual Studio projects. Some knowledge of C++ is assumed.
SFML Website
https://www.sfml-dev.org/index.php
Discord Server
/ discord
Patreon
/ victorgordan
Code
#include "SFML/Graphics.hpp"
int main()
{
sf::RenderWindow window(sf::VideoMode(800, 800), "Window Title");
sf::CircleShape shape(200.f, 100);
shape.setFillColor(sf::Color(204, 77, 5)); // Color circle
shape.setPosition(200, 200); // Center circle
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::Closed)
window.close();
}
window.clear(sf::Color(18, 33, 43)); // Color background
window.draw(shape);
window.display();
}
return 0;
}
Timestamps
0:00 Intro & Download
0:35 VS Project
0:51 Extracting the files
1:10 Configuring the VS Project
2:10 Checking the Installation
2:37 Learning Resource & Outro
References
https://www.sfml-dev.org/tutorials/2....
#cpp #visualstudio #sfml #tutorial
On this page of the site you can watch the video online SFML Tutorial - Install with a duration of hours minute second in good quality, which was uploaded by the user Victor Gordan 15 October 2021, share the link with friends and acquaintances, this video has already been watched 26,192 times on youtube and it was liked by 383 viewers. Enjoy your viewing!