SFML Tutorial - Install

Publicado em: 15 Outubro 2021
no canal de: Victor Gordan
26,192
383

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


Nesta página do site você pode assistir ao vídeo on-line SFML Tutorial - Install duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Victor Gordan 15 Outubro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 26,192 vezes e gostou 383 espectadores. Boa visualização!