Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 716 Bytes

README.md

File metadata and controls

24 lines (14 loc) · 716 Bytes

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)