The Open Game Component Library++ is the C++ interface of the JavaScript Game-Library Open Game Component Library. It contains different components, which help you to make your own game.
This Library uses the C++ interface, gtkmm, of the GUI-Library GTK+ The links above lead to external websites, which aren't under my control. I do not have any influence on the content of them.
- a C++ compiler like g++
- the C++ interface of the GUI library GTK+, gtkmm 3.0
- download the headerfiles of ogcpp here
- extract the files of the zip-file
- move the "src"-directory to your project directory
Finally your project directory should look like this:
Project
| main.cpp
|_src
| | ogcpp.h
| |_ogcpp
| | | ...
| | |_________
| |___________
|_storage
| |___________
|_____________main.cpp:
#include "src/ogcpp.h"
int main (int argc, char* argv[]) {
auto app = Gtk::Application::create(argc, argv, "org.gtkmm.example");
Stage stage("Hello World");
return app->run(stage.window);
}You can also include only single components like "core".
#include "src/ogcpp/core.h"Compile the file (Example with g++):
g++ main.cpp `pkg-config gtkmm-3.0 --cflags --libs` -o main
We assume no liability for any impact on your computer.
