Agradeceríamos tu apoyo para compartir nuestras reseñas en referencia a las ciencias informáticas.
Ejemplo 1: programa base sfml
#include intmain()// create the window
sf::RenderWindow window(sf::VideoMode(800,600),"My window");// run the program as long as the window is openwhile(window.isOpen())// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;while(window.pollEvent(event))// "close requested" event: we close the windowif(event.type == sf::Event::Closed)
window.close();// clear the window with black color
window.clear(sf::Color::Black);// draw everything here...// window.draw(...);// end the current frame
window.display();return0;
Ejemplo 2: programa básico sfml
#include intmain()
sf::RenderWindow window(sf::VideoMode(800,600),"My window");// run the program as long as the window is openwhile(window.isOpen())// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;while(window.pollEvent(event))// "close requested" event: we close the windowif(event.type == sf::Event::Closed)
window.close();return0;
valoraciones y reseñas
Recuerda que te brindamos la opción de valorar esta crónica si te fue de ayuda.
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)