Skip to content

sasq64/apone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APONE

Introduction

Apone is a C++ library, or collection of code modules to help you write modern, portable applications -- specifially ones using graphics and audio.

Apone uses cmake.

#include <grappix/grappix.h>

using namespace grappix;

int main() {
    screen.open(false);
    screen.render_loop([=](uint32_t delta) mutable {
        screen.clear();
        screen.circle(100, 100, 0xff0000ff);
        screen.flip();
    });
    return 0;
}

Take a look at EXAMPLES.md for more code examples.

Platform support

  • Linux, Mac, Windows, Rasperry PI, Emscripten currently works.
  • iOS port should be doable.

Posix Desktop (Linux, Mac)

Should build right out of the box

Windows

...

Raspberry PI

Should build right out of the box.

Cross compile

Requires

  • Raspberry PI cross compiler in your path (arm-linux-gnueabihf-gcc etc)

cmake -DCMAKE_TOOLCHAIN_FILE=../../cpp-mods/cmake/RaspberryPi.cmake -DCMAKE_BUILD_TYPE=Release

Native compile

  • Similar requirements as Desktop/Linux, but you need at least Rasbian Jessie (not Wheezy) for a modern enough compiler.
  • Also note that compiling on the Raspberry is very slow.

Android

Requires

  • Android NDK r9+
  • Android SDK api 19+
  • ant

Emscripten

Requires: emscripten

Quickstart