Gamedev Framework (gf) is a framework to build 2D games in C++11. It is based on SDL and OpenGL ES 2.0, and presents an API that is very similar to the graphics module of SFML (see Differences with SFML) with additional features. It is not a game engine, it is more something like a framework, similar to libGDX in the Java world.
Gamedev Framework (gf) is licensed under the terms and conditions of the zlib/libpng license.
First example
#include <gf/Event.h>
#include <gf/Font.h>
#include <gf/RenderWindow.h>
#include <gf/Sprite.h>
#include <gf/Text.h>
#include <gf/Window.h>
int main() {
// Create the main window and the renderer
// Load a sprite to display
return EXIT_FAILURE;
}
// Create a graphical text to display
return EXIT_FAILURE;
}
text.setPosition({ 100, 100 });
// Start the game loop
while (window.isOpen()) {
// Process events
while (window.pollEvent(event)) {
window.close();
break;
default:
break;
}
}
// Draw the entities
}
return 0;
}
Documentation
- Introduction to gf
- Tutorials on gf
- User documentation
- Core classes
- Graphics classes
- Game classes
Source
The source code is available on github.