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.
- Linux, Mac, Windows, Rasperry PI, Emscripten currently works.
- iOS port should be doable.
Should build right out of the box
...
Should build right out of the box.
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
- 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.
Requires
- Android NDK r9+
- Android SDK api 19+
- ant
Requires: emscripten