/dpgtk

a small demo configurator

Primary LanguagePythonMIT LicenseMIT

dpgtk is a small demo configurator to put at the beginning of your demos. It is header only and requires GTK. The basic program in the src/ totals up to 1871 bytes (1814 without the printf) when compiled on Arch Linux and gcc (The basic program uses some additional dependencies, which are vondehi and sstrip to crunch down on size).

It only requires one command.

#include "dpgtk.h"

void _start(){
    ...
    int input1, input2, input3;
    dpgtk(&input1,  // Resolution width
          &input2,  // Resolution height
          &input3)  // FPS

    // run demo
}

Licensed under the MIT license (see LICENSE file)