PGEtinker | The Docs
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Getting Started

Using PGEtinker should be pretty straight forward. In it’s default layout you type code in the left, click the Run button to see it running on the right. The rest is going to be dictated by your familiarity, or lack thereof, of C/C++.

Libraries

PGEtinker currently supports the following libraries:

PGEtinker detects which header files are included and links in the appropriate libraries.

To use: miniaudio

#define MINIAUDIO_IMPLEMENTATION
#include "miniaudio.h"

To use: olcPGEX_Gamepad

#define OLC_PGE_GAMEPAD
#include "olcPGEX_Gamepad.h"

To use: olcPGEX_MiniAudio

#define OLC_PGEX_MINIAUDIO
#include "olcPGEX_MiniAudio.h"

To use: olcPixelGameEngine

#define OLC_PGE_APPLICATION
#include "olcPixelGameEngine.h"

To use: olcSoundWaveEngine

#define OLC_SOUNDWAVE
#include "olcSoundWaveEngine.h"

To use: SDL v2 and extensions

#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_net.h>
#include <SDL2/SDL_ttf.h>

To use: SDL v3

#include <SDL3/SDL.h>

Choosing Library Versions

PGEtinker lets you choose which version of certain libraries to use. Go into the Settings Dialog. You will see the current versions of the libraries in a list.

You can change which versions are in use by clicking the “Select Library Versions” button.

Settings Dialog with Libraries Focused