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++.
PGEtinker currently supports the following libraries:
- miniaudio (v0.11.21)
- olcPGEX_Gamepad (master@f5958a5)
- olcPGEX_MiniAudio (v1.5 … v2.0)
- olcPixelGameEngine (v2.23 … v2.29)
- olcSoundWaveEngine (v0.02)
- raylib (v5.5-web-patched)
- SDL v1
- SDL v2
- SDL2_gfx
- Graphics Primitives
- Surface Rotozoomer
- Framerate Control
- MMX image filters
- Built-in 8x8 Font
- SDL2_image (gif,jpg,png)
- SDL2_mixer
- SDL2_net
- SDL2_ttf
- SDL2_gfx
- SDL v3
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>
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.