SFML community forums

Help => General => Topic started by: Cayle on November 17, 2013, 06:42:02 pm

Title: Using SFML in Sublime Text 3
Post by: Cayle on November 17, 2013, 06:42:02 pm
Hey guys, I am an relatively advanced beginner in c++, and I feel I am ready to start working with graphics. I use sublime text 3 as my editor of choice, and would like to know how to use SFML through it. If someone could give a detailed description on that I would be super happy, thanks.
Title: Re: Using SFML in Sublime Text 3
Post by: Jebbs on November 17, 2013, 08:26:50 pm
Well...Sublime Text is just a text editor. You would just write your header and code files like you would with any other text editor.

One thing you can do it set up a build system for it, but other than that, it doesn't need to be "set up" to be used with SFML.
Title: Re: Using SFML in Sublime Text 3
Post by: Cayle on November 17, 2013, 11:45:58 pm
I know this is dumb, but could you give an example?
Title: Re: Using SFML in Sublime Text 3
Post by: wintertime on November 18, 2013, 01:25:43 am
You start it, type something in, save it as files with .hpp or .cpp extension if you want to program in C++.
A text editor does not include everything, you need to google on how to download and use an appropriate compiler, linker and maybe something of make/rake/cmake/...
Then you use the appropriate command for those tools to start them. They depend on what you use.
Then you fix errors using the editor.
You start the tools again.
Your program hopefully runs.
You improve it.
Repeat last 4 till you finished.