When comparing GLBasic vs SFML, the Slant community recommends SFML for most people. In the question“What are the best 2D game engines?” SFML is ranked 24th while GLBasic is ranked 68th.
Ranked in these QuestionsQuestion Ranking
Pro Easy to develop with
Language is easy to use, with a fast compiler.
Pro Fast 2D
Pro Easy to learn
Forum support is great. No advertising in program or forums. Company has been going for over 10 years.
Unlike most multi-platform development systems, 3D is available across most of them.
Code can be written once and will work on supported platforms with very little modification.
Pro No hidden fees
PC version is free.
Full Multi-platform version requires one-off very reasonable price, and all further updates are free, however you can run a watermarked demo on your chosen platform with the free demo version.
Pro C/C++ support
C/C++ code can be included inline or as a DLL/.o/dylib file.
Pro HTML 5 compiling is now faster and works better
Pro Default GUI system works fine, and has all the needed widgets needed
Only problem is position is based on position of previous widget.
Pro Compiler is fast and produces efficient code
Pro Free for home development
Create apps for non commercial 2D programs running on Windows, Linux and Mac OSX. The extension to create programs for other platforms, 3D or network applications requires a license key. Otherwise the "Premium" programs are limited to 10 min runtime for test purposes. There is no trial limit for the development environment.
Easy-to-use networking system with either TCP or UDP.
Programmers reference guide, user guide and various others are free.
Pro Gaming related functions
Viewports, sprites, rotating/animating and zooming sprites, collision detection and pathfinding.
Pro Very effiecient and usable.
Pro zlib/PNG license
In short, SFML is free for any use (commercial or personal, proprietary or open-source). You can use SFML in your project without any restriction. You can even omit to mention that you use SFML -- although it would be appreciated.
Pro Can be combined with OpenGL
If you hate something about the way SFML handles graphics, you can just combine it with OpenGL. It's completely smooth and works as expected, without any additional dependencies.
Pro Active community and wiki
You can ask questions on their own personal forum which is full of users, and their wiki is constantly being maintained. They even have an IRC
Pro Works on every platform
SFML 2.2 brought forth Android & iOS functionality, and SFML games work on Linux, Mac and Windows out of the box, since SFML is written with OpenGL.
Pro Great documentation
SFML is very well documented, even with short examples of use for many functions and modules. Furthermore, there are books like 'SFML essentials' and 'SFML for game development' which teach you how to use this library to its fullest.
Pro Good for OpenGL
If you are thinking about using OpenGL, look no further, you can open a window, and handle events in less than 15 lines, and it provides input, time, and even networking, plus alot more. It has become my favorite c++ library :D
Pro Great library
SFML is a collection of modular, well designed libraries you can implement an engine or game on top of. The API provides tons of good documentation and is very straightforward to use. You can get a game up and running with SFML quite quickly and with minimal effort.
Pro Clean code
An SFML project's code-base is usually clean and easy to read. All public SFML classes are under the namespace "sf" so it is easy to tell which code is yours and which belongs to SFML (of course you can stop this by typing
using namespace sf;).
Pro Available in many languages
There's support for many languages besides C++, current supported languages are: C, .NET, Crystal, D, Euphoria, Go, Java, Julia, Nim, OCaml, Pascal, Python, Ruby and Rust, and this list is constantly growing
SFML is extremely beginner friendly and even provides pre-built libraries for your IDE of choice on Windows. Besides the fact that it's extremely well documented, they also have a set of tutorials that walk you through every module.
Pro Modern C++11 implementation
SFML is one of the few good C++ frameworks out there to actually make full use of the language. It's extremely well optimized and it plays well with anything you throw at it.
Con Command set has hardly changed or been updated/improved over the years
Con Poor 2d collision detection with rotated sprites
2d sprite rotation with collision detection isn't present and requires some annoying run-arounds to achieve what is a staple of other game engines.
Con No multi-platform editor
Whilst Linux and Mac IDE's were started, they were never completed.
Con No clear way to monetize apps
It's impossible to place ads. There is a third party in-app purchase library hidden somewhere deep within the forums which hasn't been updated for years.
Con Issues don't get fixed
The Blender exporter and the 3D converter have been broken and remain unfixed for years.
Con Only supports .ddd 3D format
This format does not support bones and only keyframe animation. 3d files will become extremely large if there are animations in models.
Con HTML 5
HTML 5 compiling is rather slow, and doesn't allow all GLBasic features
Con Poor GUI creation library
Its library for GUI creation is abysmal and not acceptable.
Con Poor documentation
There is next to no documentation on using OpenGL commands in GLBasic.
Con May take longer to learn and understand.
Con No GUI editor or IDE
Does not include any IDE or media editor. It's purely source code.
Con Messy sprite management
Sprites retain all of the operations applied to them, whether that be a new position or a rotation. This makes sprite management somewhat annoying.
Con Not specifically a 2D game engine
It isn't really an engine, more of a collection of modular, well designed libraries you can implement an engine or game on top of.