Skip to content

ppekko/dpgtk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 15, 2023
96dc500 · Jun 15, 2023

History

4 Commits
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Jun 15, 2023
Sep 17, 2022
Sep 17, 2022

Repository files navigation

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)