SFML Tutorial One: Open a Window
In this tutorial, I will be showing you how to open a window using SFML. So let's get started!NOTE: I am assuming a basic/intermediate knowledge of C++.
The first thing you want to do is include SFML and set up your Main function:
#include <SFML/Window.hpp>
int main(){
sf::Window window(sf::VideoMode(600,600), "SFML");
//The above will create a Window object with a resolution of //600x600 and a title of SFML. Feel free to change these.
return 0;
}
This will simply set up a window.
No comments:
Post a Comment