Skip to content

mattes2008/OpenGameComponentLibraryPlusPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Game Component Library++

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.

Gtkmm

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.

Get Started

1. Requirements

  • a C++ compiler like g++
  • the C++ interface of the GUI library GTK+, gtkmm 3.0

2. Download

  • 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
  | |___________
  |_____________

3. Hello World

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

Disclaimer

We assume no liability for any impact on your computer.

About

C++ interface of Open Game Component Library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors